Commit cba0567
committed
enhance: support credential override
Enable users to set credential overrides on `run`.
```python
gptscript = GPTScript()
run = gptscript.run('./test.gpt',
opts=Options(credentialOverride='sys.openai:OPENAI_API_KEY')
output = await run.text()
print(output)
gptscript.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 <4175918+njhale@users.noreply.github.com>1 parent 28ec619 commit cba0567
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| 47 | + | |
46 | 48 | | |
0 commit comments