Skip to content

Commit e7cb55c

Browse files
committed
enhance: support credential override
Enable users to set credential overrides on `run`. e.g. ```typescript const g = new gptscript.GPTScript(); try { const run = await g.run('./test.gpt', { disableCache: true, credentialOverride: "sys.openai:OPENAI_API_KEY", }); console.log(await run.text()); } catch (e) { console.error(e); } g.close(); ``` ```yaml tools: github.com/gptscript-ai/dalle-image-generation You are an expert in image generation. Please generate a lion standing proudly in the savannah. ``` Signed-off-by: Nick Hale <[email protected]>
1 parent 0a63991 commit e7cb55c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/gptscript.ts

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export interface RunOpts {
3737
chatState?: string
3838
confirm?: boolean
3939
prompt?: boolean
40+
credentialOverride?: string
4041
env?: string[]
4142

4243
APIKey?: string

0 commit comments

Comments
 (0)