From 4197b39ed68fad8f631b8c124e71dbda0691a47b Mon Sep 17 00:00:00 2001 From: Donnie Adams Date: Mon, 12 Aug 2024 15:56:11 -0400 Subject: [PATCH] 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 --- pkg/remote/remote.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/remote/remote.go b/pkg/remote/remote.go index 6a21413b..baa54677 100644 --- a/pkg/remote/remote.go +++ b/pkg/remote/remote.go @@ -189,7 +189,7 @@ func (c *Client) load(ctx context.Context, toolName string) (*openai.Client, err client: oClient, url: url, } - return client.client, nil + return oClient, nil } func (c *Client) retrieveAPIKey(ctx context.Context, env, url string) (string, error) {