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 53e46fe commit 44d0d96
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Expand Up @@ -52,6 +52,7 @@ jobs:
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: 'maintenance'

- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
Expand Down
18 changes: 17 additions & 1 deletion src/info.json
Expand Up @@ -35,12 +35,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 @@ -51,6 +59,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 @@ -59,6 +71,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",
];

/**
Expand Down

0 comments on commit 44d0d96

Please sign in to comment.