Skip to content

Commit 0c56836

Browse files
committed
fix: always build credential helper
Signed-off-by: Grant Linville <[email protected]>
1 parent 13c07d6 commit 0c56836

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/gptscript/gptscript.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ func New(o ...Options) (*GPTScript, error) {
103103
if err := opts.Runner.RuntimeManager.SetUpCredentialHelpers(context.Background(), cliCfg, opts.Env); err != nil {
104104
return nil, err
105105
}
106+
if err := opts.Runner.RuntimeManager.EnsureCredentialHelpers(context.Background()); err != nil {
107+
return nil, err
108+
}
106109

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

0 commit comments

Comments
 (0)