Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/anthropic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- main
pull_request:
paths:
- providers/anthropic/**
- anthropic/**
- .github/workflows/anthropic.yml

jobs:
Expand All @@ -18,14 +18,14 @@ jobs:
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: ./providers/anthropic
working-directory: ./anthropic
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: ./providers/anthropic/go.mod
go-version-file: ./anthropic/go.mod
cache: true
cache-dependency-path: ./providers/anthropic/go.sum
cache-dependency-path: ./anthropic/go.sum
- run: go build -v ./...
- run: go test -race -v ./...

Expand All @@ -51,6 +51,6 @@ jobs:
lint:
uses: charmbracelet/meta/.github/workflows/lint.yml@main
with:
directory: ./providers/anthropic/...
directory: ./anthropic/...
golangci_path: .golangci.yml

10 changes: 5 additions & 5 deletions .github/workflows/openai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- main
pull_request:
paths:
- providers/openai/**
- openai/**
- .github/workflows/openai.yml

jobs:
Expand All @@ -18,14 +18,14 @@ jobs:
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: ./providers/openai
working-directory: ./openai
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: ./providers/openai/go.mod
go-version-file: ./openai/go.mod
cache: true
cache-dependency-path: ./providers/openai/go.sum
cache-dependency-path: ./openai/go.sum
- run: go build -v ./...
- run: go test -race -v ./...

Expand All @@ -51,6 +51,6 @@ jobs:
lint:
uses: charmbracelet/meta/.github/workflows/lint.yml@main
with:
directory: ./providers/openai/...
directory: ./openai/...
golangci_path: .golangci.yml

4 changes: 2 additions & 2 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ env:
vars:
PACKAGES:
- ./ai
- ./anthropic
- ./examples
- ./providers/anthropic
- ./providers/openai
- ./openai

tasks:
fmt:
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions providers/anthropic/go.mod → anthropic/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/charmbracelet/ai/providers/anthropic
module github.com/charmbracelet/ai/anthropic

go 1.24.5

Expand All @@ -15,4 +15,4 @@ require (
github.com/tidwall/sjson v1.2.5 // indirect
)

replace github.com/charmbracelet/ai/ai => ../../ai
replace github.com/charmbracelet/ai/ai => ../ai
File renamed without changes.
2 changes: 1 addition & 1 deletion examples/agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"

"github.com/charmbracelet/ai/ai"
"github.com/charmbracelet/ai/providers/openai"
"github.com/charmbracelet/ai/openai"
)

func main() {
Expand Down
8 changes: 4 additions & 4 deletions examples/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ go 1.24.5

require (
github.com/charmbracelet/ai/ai v0.0.0-00010101000000-000000000000
github.com/charmbracelet/ai/providers/anthropic v0.0.0-00010101000000-000000000000
github.com/charmbracelet/ai/providers/openai v0.0.0-00010101000000-000000000000
github.com/charmbracelet/ai/anthropic v0.0.0-00010101000000-000000000000
github.com/charmbracelet/ai/openai v0.0.0-00010101000000-000000000000
)

require (
Expand All @@ -21,6 +21,6 @@ require (

replace github.com/charmbracelet/ai/ai => ../ai

replace github.com/charmbracelet/ai/providers/anthropic => ../providers/anthropic
replace github.com/charmbracelet/ai/anthropic => ../anthropic

replace github.com/charmbracelet/ai/providers/openai => ../providers/openai
replace github.com/charmbracelet/ai/openai => ../openai
2 changes: 1 addition & 1 deletion examples/simple/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"

"github.com/charmbracelet/ai/ai"
"github.com/charmbracelet/ai/providers/anthropic"
"github.com/charmbracelet/ai/anthropic"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/stream/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"os"

"github.com/charmbracelet/ai/ai"
"github.com/charmbracelet/ai/providers/openai"
"github.com/charmbracelet/ai/openai"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/streaming-agent-simple/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"

"github.com/charmbracelet/ai/ai"
"github.com/charmbracelet/ai/providers/openai"
"github.com/charmbracelet/ai/openai"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/streaming-agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"

"github.com/charmbracelet/ai/ai"
"github.com/charmbracelet/ai/providers/anthropic"
"github.com/charmbracelet/ai/anthropic"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions go.work
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ go 1.24.5

use (
./ai
./anthropic
./examples
./providers/anthropic
./providers/openai
./openai
)
4 changes: 2 additions & 2 deletions providers/openai/go.mod → openai/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/charmbracelet/ai/providers/openai
module github.com/charmbracelet/ai/openai

go 1.24.5

Expand All @@ -20,4 +20,4 @@ require (
gopkg.in/yaml.v3 v3.0.1 // indirect
)

replace github.com/charmbracelet/ai/ai => ../../ai
replace github.com/charmbracelet/ai/ai => ../ai
1 change: 1 addition & 0 deletions providers/openai/go.sum → openai/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
github.com/tidwall/gjson v1.14.2/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk=
github.com/tidwall/gjson v1.18.0 h1:FIDeeyB800efLX89e5a8Y0BNH+LOngJyGrIWxG2FKQY=
github.com/tidwall/gjson v1.18.0/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk=
github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA=
github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM=
github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU=
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading