From 3535ba6301bfed20a40b61fdd0a68bfaa354d510 Mon Sep 17 00:00:00 2001 From: rj Date: Fri, 13 Dec 2024 13:50:58 +0000 Subject: [PATCH] development > main (#424) * Update chat-service.ts (#422) Potential fix https://github.com/twinnydotdev/twinny/issues/242 or just "House Keeping" * 3.19.24 --------- Co-authored-by: Eric Xanderson --- package-lock.json | 4 ++-- package.json | 2 +- src/extension/chat-service.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 37000b9..755675f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "twinny", - "version": "3.19.23", + "version": "3.19.24", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "twinny", - "version": "3.19.23", + "version": "3.19.24", "cpu": [ "x64", "arm64" diff --git a/package.json b/package.json index e4e1ce9..4d56da7 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "twinny", "displayName": "twinny - AI Code Completion and Chat", "description": "Locally hosted AI code completion plugin for vscode", - "version": "3.19.23", + "version": "3.19.24", "icon": "assets/icon.png", "keywords": [ "code-inference", 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, }, }