From bdc37a6f247bb76bae5767a86fd28d0d10633be5 Mon Sep 17 00:00:00 2001 From: Donnie Adams Date: Thu, 12 Sep 2024 14:04:33 -0400 Subject: [PATCH] fix: override 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 --- tests/gptscript.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/gptscript.test.ts b/tests/gptscript.test.ts index ee716a2..d1ae8b8 100644 --- a/tests/gptscript.test.ts +++ b/tests/gptscript.test.ts @@ -204,6 +204,7 @@ describe("gptscript module", () => { const testGptPath = path.join(__dirname, "fixtures", "global-tools.gpt") const opts = { disableCache: true, + credentialOverrides: ["github.com/gptscript-ai/gateway:OPENAI_API_KEY"] } const run = await g.run(testGptPath, opts)