Skip to content

Commit

Permalink
fix: stop always adding the default cred context (#854)
Browse files Browse the repository at this point in the history
Signed-off-by: Grant Linville <grant@acorn.io>
  • Loading branch information
g-linville authored Sep 19, 2024
1 parent a15945e commit 354541c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/gptscript/gptscript.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func Complete(opts ...Options) Options {
result.Runner = runner.Complete(result.Runner, opt.Runner)
result.OpenAI = openai.Complete(result.OpenAI, opt.OpenAI)

result.CredentialContexts = append(result.CredentialContexts, opt.CredentialContexts...)
result.CredentialContexts = opt.CredentialContexts
result.Quiet = types.FirstSet(opt.Quiet, result.Quiet)
result.Workspace = types.FirstSet(opt.Workspace, result.Workspace)
result.Env = append(result.Env, opt.Env...)
Expand Down

0 comments on commit 354541c

Please sign in to comment.