Skip to content

Commit 08c296a

Browse files
chore: switch to hard fork of go-openai client
1 parent d9f1c0d commit 08c296a

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

go.mod

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module github.com/gptscript-ai/gptscript
22

3-
go 1.22.0
4-
5-
replace github.com/sashabaranov/go-openai => github.com/gptscript-ai/go-openai v0.0.0-20240330064700-d33320ca826f
3+
go 1.22.2
64

75
require (
86
github.com/AlecAivazis/survey/v2 v2.3.7
@@ -13,13 +11,13 @@ require (
1311
github.com/fatih/color v1.16.0
1412
github.com/getkin/kin-openapi v0.123.0
1513
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510
14+
github.com/gptscript-ai/chat-completion-client v0.0.0-20240404013040-49eb8f6affa1
1615
github.com/hexops/autogold/v2 v2.1.0
1716
github.com/jaytaylor/html2text v0.0.0-20230321000545-74c2419ad056
1817
github.com/mholt/archiver/v4 v4.0.0-alpha.8
1918
github.com/olahol/melody v1.1.4
2019
github.com/rs/cors v1.10.1
2120
github.com/samber/lo v1.38.1
22-
github.com/sashabaranov/go-openai v1.20.4
2321
github.com/sirupsen/logrus v1.9.3
2422
github.com/spf13/cobra v1.8.0
2523
github.com/stretchr/testify v1.8.4

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+
124124
github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk=
125125
github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc=
126126
github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
127-
github.com/gptscript-ai/go-openai v0.0.0-20240330064700-d33320ca826f h1:XSqwZIal7wCjmkV3Ncrvu5TAvXlaUnjGwygn21OTlh0=
128-
github.com/gptscript-ai/go-openai v0.0.0-20240330064700-d33320ca826f/go.mod h1:lj5b/K+zjTSFxVLijLSTDZuP7adOgerWeFyZLUhAKRg=
127+
github.com/gptscript-ai/chat-completion-client v0.0.0-20240404013040-49eb8f6affa1 h1:h0ikiEkB6lUgiOKN5ltZ7rzIvA13qjz8qcB/3wWdCws=
128+
github.com/gptscript-ai/chat-completion-client v0.0.0-20240404013040-49eb8f6affa1/go.mod h1:7P/o6/IWa1KqsntVf68hSnLKuu3+xuqm6lYhch1w4jo=
129129
github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA=
130130
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
131131
github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo=

pkg/openai/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ import (
1414
"strings"
1515
"sync/atomic"
1616

17+
openai "github.com/gptscript-ai/chat-completion-client"
1718
"github.com/gptscript-ai/gptscript/pkg/cache"
1819
"github.com/gptscript-ai/gptscript/pkg/hash"
1920
"github.com/gptscript-ai/gptscript/pkg/system"
2021
"github.com/gptscript-ai/gptscript/pkg/types"
21-
"github.com/sashabaranov/go-openai"
2222
)
2323

2424
const (

0 commit comments

Comments
 (0)