Skip to content

Commit 75d9600

Browse files
authored
Merge pull request #789 from thedadams/fix-default-model-listing
fix: address panic when listing models with default model provider
2 parents 3f543db + 4197b39 commit 75d9600

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)