Commit 53715a3
committed
fix: use entire env for credential prompting
If the URL and token environment variable are set outside gptscript,
then the credential prompting tool needs those variables. In this case,
the extraEnv is nil and doesn't allow prompting to work.
Additionally, the credential context default is needed when completing
the opts for the SDK server.
Signed-off-by: Donnie Adams <donnie@acorn.io>1 parent 49fc1c9 commit 53715a3
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
61 | 64 | | |
62 | 65 | | |
63 | 66 | | |
| |||
107 | 110 | | |
108 | 111 | | |
109 | 112 | | |
110 | | - | |
| 113 | + | |
| 114 | + | |
111 | 115 | | |
112 | | - | |
| 116 | + | |
113 | 117 | | |
114 | 118 | | |
115 | 119 | | |
| |||
0 commit comments