From 466d2557f7b762c9d25d19a2f435c255c1d24755 Mon Sep 17 00:00:00 2001 From: Eric Xanderson Date: Thu, 12 Dec 2024 15:06:45 -0600 Subject: [PATCH] Update chat-service.ts Potential fix https://github.com/twinnydotdev/twinny/issues/242 or just "House Keeping" --- src/extension/chat-service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extension/chat-service.ts b/src/extension/chat-service.ts index 8a77dda..da2a336 100644 --- a/src/extension/chat-service.ts +++ b/src/extension/chat-service.ts @@ -294,7 +294,7 @@ export class ChatService extends Base { method: "POST", headers: { "Content-Type": "application/json", - Authorization: `Bearer ${provider.apiKey}`, + Authorization: provider?.apiKey ? `Bearer ${provider.apiKey}` : undefined, }, }