Skip to content

Commit

Permalink
Merge pull request #182 from rjmacarthy/development
Browse files Browse the repository at this point in the history
(fix) remove non compliant openai api properties from payload
  • Loading branch information
rjmacarthy committed Mar 21, 2024
2 parents 8d4c7b8 + eab3681 commit 7952ff8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 2 additions & 5 deletions src/webview/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ export const Chat = () => {
{
role: BOT_NAME,
content: getCompletionContent(message),
type: message.value.type,
language: message.value.data
}
]
global.vscode.postMessage({
Expand Down Expand Up @@ -205,8 +203,7 @@ export const Chat = () => {
{
role: USER_NAME,
content: input,
type: 'chat'
}
}
]
} as ClientMessage)
setMessages((prev) => [
Expand Down Expand Up @@ -329,7 +326,7 @@ export const Chat = () => {
<DisabledSelectionIcon />
)}
</VSCodeButton>
<VSCodeBadge>Selected characters: {selection?.length}</VSCodeBadge>
<VSCodeBadge>{selection?.length}</VSCodeBadge>
</div>
{apiProvider === ApiProviders.Ollama && (
<VSCodeButton
Expand Down

0 comments on commit 7952ff8

Please sign in to comment.