Skip to content

Commit 70e8788

Browse files
committed
fix: override the knowledge credential in test
The knowledge tool isn't actually used in the test, but it is a good example of a large tool, so it is included. Signed-off-by: Donnie Adams <donnie@acorn.io>
1 parent a7d55cd commit 70e8788

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: gptscript_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ func TestToolWithGlobalTools(t *testing.T) {
828828

829829
var eventContent string
830830

831-
run, err := g.Run(context.Background(), wd+"/test/global-tools.gpt", Options{DisableCache: true, IncludeEvents: true})
831+
run, err := g.Run(context.Background(), wd+"/test/global-tools.gpt", Options{DisableCache: true, IncludeEvents: true, CredentialOverrides: []string{"github.com/gptscript-ai/gateway:OPENAI_API_KEY"}})
832832
if err != nil {
833833
t.Fatalf("Error executing tool: %v", err)
834834
}

0 commit comments

Comments
 (0)