Skip to content

Commit

Permalink
chore: bump version to 2.4.3 and fix OpenAI API response handling
Browse files Browse the repository at this point in the history
  • Loading branch information
macro21KGB committed Nov 19, 2024
1 parent 909e0f1 commit 192db37
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "select-and-complete",
"name": "Select & Complete",
"version": "2.4.2",
"version": "2.4.3",
"minAppVersion": "0.15.0",
"description": "Select something and let the AI complete it for you.",
"author": "Mario De Luca",
Expand Down
2 changes: 1 addition & 1 deletion models/model_openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class OpenAIModel extends ChatInterface {
return error;
});

return message.choices[0].message.content
return message.json.choices[0].message.content
}

}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "select-and-complete-plugin",
"version": "2.4.2",
"version": "2.4.3",
"description": "A plugin for Obsidian that allows you to select a phrase and complete it with AI",
"main": "main.js",
"scripts": {
Expand All @@ -24,4 +24,4 @@
"dependencies": {
"select-and-complete-plugin": "file:"
}
}
}
5 changes: 3 additions & 2 deletions versions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"1.0.0": "0.15.0"
}
"1.0.0": "0.15.0",
"2.4.3": "0.15.0"
}

0 comments on commit 192db37

Please sign in to comment.