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 16, 2023
1 parent 4889d87 commit 1d76149
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
20 changes: 18 additions & 2 deletions src/info.json
Expand Up @@ -45,14 +45,22 @@
"identifier": "model",
"type": "menu",
"title": "模型",
"defaultValue": "gpt-3.5-turbo",
"defaultValue": "gpt-3.5-turbo-0613",
"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
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 HttpErrorCodes = {
"400": "Bad Request",
Expand Down

0 comments on commit 1d76149

Please sign in to comment.