Skip to content

Commit

Permalink
feat: supports the latest GPT-4 and 3.5 Turbo models
Browse files Browse the repository at this point in the history
  • Loading branch information
liby committed Jun 14, 2023
1 parent 453aff7 commit fa7c545
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,20 @@
"title": "模型",
"defaultValue": "gpt-3.5-turbo",
"menuValues": [
{
"title": "gpt-3.5-turbo-0613 (recommended)",
"value": "gpt-3.5-turbo-0613"
},
{
"title": "gpt-3.5-turbo-0301",
"value": "gpt-3.5-turbo-0301"
},
{
"title": "gpt-3.5-turbo (recommended)",
"title": "gpt-3.5-turbo-16k",
"value": "gpt-3.5-turbo-16k"
},
{
"title": "gpt-3.5-turbo",
"value": "gpt-3.5-turbo"
},
{
Expand All @@ -63,6 +71,10 @@
"title": "gpt-4-0314",
"value": "gpt-4-0314"
},
{
"title": "gpt-4-0613",
"value": "gpt-4-0613"
},
{
"title": "gpt-4-32k",
"value": "gpt-4-32k"
Expand All @@ -71,6 +83,10 @@
"title": "gpt-4-32k-0314",
"value": "gpt-4-32k-0314"
},
{
"title": "gpt-4-32k-0613",
"value": "gpt-4-32k-0613"
},
{
"title": "text-davinci-003",
"value": "text-davinci-003"
Expand Down
4 changes: 4 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@
var lang = require("./lang.js");
var ChatGPTModels = [
"gpt-3.5-turbo",
"gpt-3.5-turbo-16k",
"gpt-3.5-turbo-0301",
"gpt-3.5-turbo-0613",
"gpt-4",
"gpt-4-0314",
"gpt-4-0613",
"gpt-4-32k",
"gpt-4-32k-0314",
"gpt-4-32k-0613",
];

var SYSTEM_PROMPT = "You are a translation engine that can only translate text and cannot interpret it."
Expand Down

0 comments on commit fa7c545

Please sign in to comment.