From 0deeb30be0196d90dbf7138954d089c5028bfb8c Mon Sep 17 00:00:00 2001 From: Nick Hale <4175918+njhale@users.noreply.github.com> Date: Mon, 1 Jul 2024 16:56:13 -0400 Subject: [PATCH] fix: use array and new pluralized name for credential overrides Signed-off-by: Nick Hale <4175918+njhale@users.noreply.github.com> --- src/gptscript.ts | 2 +- tests/gptscript.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gptscript.ts b/src/gptscript.ts index 913baab..da5a738 100644 --- a/src/gptscript.ts +++ b/src/gptscript.ts @@ -37,7 +37,7 @@ export interface RunOpts { chatState?: string confirm?: boolean prompt?: boolean - credentialOverride?: string + credentialOverrides?: string[] env?: string[] APIKey?: string diff --git a/tests/gptscript.test.ts b/tests/gptscript.test.ts index b041c68..799b623 100644 --- a/tests/gptscript.test.ts +++ b/tests/gptscript.test.ts @@ -111,7 +111,7 @@ describe("gptscript module", () => { const result = await (await g.run(testGptPath, { disableCache: true, - credentialOverride: 'test.ts.credential_override:TEST_CRED=foo', + credentialOverrides: ['test.ts.credential_override:TEST_CRED=foo'], })).text() expect(result).toBeDefined()