Skip to content

Commit

Permalink
fix: override the knowledge credential in test
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
thedadams committed Sep 12, 2024
1 parent a7d55cd commit 70e8788
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gptscript_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 70e8788

Please sign in to comment.