Skip to content

Commit

Permalink
fix: always build credential helper (#549)
Browse files Browse the repository at this point in the history
Signed-off-by: Grant Linville <[email protected]>
  • Loading branch information
g-linville authored Jun 25, 2024
1 parent 13c07d6 commit f79b9b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/gptscript/gptscript.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ func New(o ...Options) (*GPTScript, error) {
if err := opts.Runner.RuntimeManager.SetUpCredentialHelpers(context.Background(), cliCfg, opts.Env); err != nil {
return nil, err
}
if err := opts.Runner.RuntimeManager.EnsureCredentialHelpers(context.Background()); err != nil {
return nil, err
}

oaiClient, err := openai.NewClient(credStore, opts.OpenAI, openai.Options{
Cache: cacheClient,
Expand Down

0 comments on commit f79b9b4

Please sign in to comment.