diff --git a/package-lock.json b/package-lock.json index 37000b9f..755675f7 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 e4e1ce9e..4d56da79 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 8a77ddaa..da2a336e 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, }, }