Skip to content

Commit 4124775

Browse files
committed
fix: bump go-gptscript to fix default model auth tui prompt
Bump go-gptscript to include a fix that corrects the name of the default model environment variable passed to the sdk server. This prevents the TUI from prompting for an OpenAI key when using local models that don't require it. Signed-off-by: Nick Hale <[email protected]>
1 parent 9d1e1e4 commit 4124775

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

go.mod

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ module github.com/gptscript-ai/gptscript
22

33
go 1.22.3
44

5+
replace github.com/gptscript-ai/go-gptscript => github.com/njhale/go-gptscript v0.0.0-20240624223926-b4784e17f9f0
6+
57
require (
68
github.com/AlecAivazis/survey/v2 v2.3.7
79
github.com/BurntSushi/locker v0.0.0-20171006230638-a6e239ea1c69

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,6 @@ github.com/gorilla/css v1.0.0 h1:BQqNyPTi50JCFMTw/b67hByjMVXZRwGha6wxVGkeihY=
171171
github.com/gorilla/css v1.0.0/go.mod h1:Dn721qIggHpt4+EFCcTLTU/vk5ySda2ReITrtgBl60c=
172172
github.com/gptscript-ai/chat-completion-client v0.0.0-20240531200700-af8e7ecf0379 h1:vYnXoIyCXzaCEw0sYifQ4bDpsv3/fO/dZ2suEsTwCIo=
173173
github.com/gptscript-ai/chat-completion-client v0.0.0-20240531200700-af8e7ecf0379/go.mod h1:7P/o6/IWa1KqsntVf68hSnLKuu3+xuqm6lYhch1w4jo=
174-
github.com/gptscript-ai/go-gptscript v0.0.0-20240613214812-8111c2b02d71 h1:WehkkausLuXI91ePpIVrzZ6eBmfFIU/HfNsSA1CHiwo=
175-
github.com/gptscript-ai/go-gptscript v0.0.0-20240613214812-8111c2b02d71/go.mod h1:Dh6vYRAiVcyC3ElZIGzTvNF1FxtYwA07BHfSiFKQY7s=
176174
github.com/gptscript-ai/tui v0.0.0-20240618230843-2b5961f3341b h1:OJfmpDQ/6ffz5P4UdJJEd5xeqo2dfWnsg1YZLDqJWYo=
177175
github.com/gptscript-ai/tui v0.0.0-20240618230843-2b5961f3341b/go.mod h1:ZlyM+BRiD6mV04w+Xw2mXP1VKGEUbn8BvwrosWlplUo=
178176
github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA=
@@ -264,6 +262,8 @@ github.com/muesli/termenv v0.15.2 h1:GohcuySI0QmI3wN8Ok9PtKGkgkFIk7y6Vpb5PvrY+Wo
264262
github.com/muesli/termenv v0.15.2/go.mod h1:Epx+iuz8sNs7mNKhxzH4fWXGNpZwUaJKRS1noLXviQ8=
265263
github.com/nightlyone/lockfile v1.0.0 h1:RHep2cFKK4PonZJDdEl4GmkabuhbsRMgk/k3uAmxBiA=
266264
github.com/nightlyone/lockfile v1.0.0/go.mod h1:rywoIealpdNse2r832aiD9jRk8ErCatROs6LzC841CI=
265+
github.com/njhale/go-gptscript v0.0.0-20240624223926-b4784e17f9f0 h1:QG9gx1pD0oqpPoZ+upaBEPhvmlBh/YmL6gUqH5ocBrM=
266+
github.com/njhale/go-gptscript v0.0.0-20240624223926-b4784e17f9f0/go.mod h1:Dh6vYRAiVcyC3ElZIGzTvNF1FxtYwA07BHfSiFKQY7s=
267267
github.com/nwaples/rardecode/v2 v2.0.0-beta.2 h1:e3mzJFJs4k83GXBEiTaQ5HgSc/kOK8q0rDaRO0MPaOk=
268268
github.com/nwaples/rardecode/v2 v2.0.0-beta.2/go.mod h1:yntwv/HfMc/Hbvtq9I19D1n58te3h6KsqCf3GxyfBGY=
269269
github.com/olekukonko/tablewriter v0.0.6-0.20230925090304-df64c4bbad77 h1:3bMMZ1f+GPXFQ1uNaYbO/uECWvSfqEA+ZEXn1rFAT88=

pkg/cli/gptscript.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func New() *cobra.Command {
8484
&Parse{},
8585
&Fmt{},
8686
&SDKServer{
87-
GPTScript: root,
87+
GPTScript: *root,
8888
},
8989
)
9090

pkg/cli/sdk_server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
)
1111

1212
type SDKServer struct {
13-
*GPTScript
13+
GPTScript
1414
}
1515

1616
func (c *SDKServer) Customize(cmd *cobra.Command) {

0 commit comments

Comments
 (0)