From 70e878812b42b9f5369d1c09320edc2a43716df0 Mon Sep 17 00:00:00 2001 From: Donnie Adams Date: Thu, 12 Sep 2024 13:58:39 -0400 Subject: [PATCH] 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 --- gptscript_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gptscript_test.go b/gptscript_test.go index e705c98..6d43e4f 100644 --- a/gptscript_test.go +++ b/gptscript_test.go @@ -828,7 +828,7 @@ func TestToolWithGlobalTools(t *testing.T) { var eventContent string - run, err := g.Run(context.Background(), wd+"/test/global-tools.gpt", Options{DisableCache: true, IncludeEvents: true}) + 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"}}) if err != nil { t.Fatalf("Error executing tool: %v", err) }