diff --git a/package-lock.json b/package-lock.json index 37dd6ab7..499c30c4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "twinny", - "version": "3.8.8", + "version": "3.8.9", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "twinny", - "version": "3.8.8", + "version": "3.8.9", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 50bc27e7..a27e32b9 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.8.8", + "version": "3.8.9", "icon": "assets/icon.png", "keywords": [ "code-inference", diff --git a/src/webview/chat.tsx b/src/webview/chat.tsx index b22ca7e9..3932611c 100644 --- a/src/webview/chat.tsx +++ b/src/webview/chat.tsx @@ -90,8 +90,6 @@ export const Chat = () => { { role: BOT_NAME, content: getCompletionContent(message), - type: message.value.type, - language: message.value.data } ] global.vscode.postMessage({ @@ -205,8 +203,7 @@ export const Chat = () => { { role: USER_NAME, content: input, - type: 'chat' - } + } ] } as ClientMessage) setMessages((prev) => [ @@ -329,7 +326,7 @@ export const Chat = () => { )} - Selected characters: {selection?.length} + {selection?.length} {apiProvider === ApiProviders.Ollama && (