Skip to content

Commit 4197b39

Browse files
committed
fix: address panic when listing models with default model provider
Apparently, this code path is exercised by listing models and not by using the provider with LLM calls. Signed-off-by: Donnie Adams <[email protected]>
1 parent c3e1974 commit 4197b39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/remote/remote.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ func (c *Client) load(ctx context.Context, toolName string) (*openai.Client, err
189189
client: oClient,
190190
url: url,
191191
}
192-
return client.client, nil
192+
return oClient, nil
193193
}
194194

195195
func (c *Client) retrieveAPIKey(ctx context.Context, env, url string) (string, error) {

0 commit comments

Comments
 (0)