Commit 67da30e
committed
enhance: support credential override
Enable users to set credential overrides on `Run`.
e.g.
```go
run, err := g.Run(
ctx,
"./test.gpt",
gptscript.Options{
DisableCache: true,
IncludeEvents: true,
CredentialOverride: "sys.openai:OPENAI_API_KEY",
},
)
```
```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 974f222 commit 67da30e
1 file changed
+10
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
40 | 41 | | |
0 commit comments