Commit e7cb55c
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
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
0 commit comments