Skip to content

Commit 44d0d96

Browse files
committed
feat: supports the latest GPT-4 and 3.5 Turbo models
1 parent 53e46fe commit 44d0d96

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ jobs:
5252
uses: ad-m/github-push-action@master
5353
with:
5454
github_token: ${{ secrets.GITHUB_TOKEN }}
55+
branch: 'maintenance'
5556

5657
- name: Upload binaries to release
5758
uses: svenstaro/upload-release-action@v2

src/info.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,20 @@
3535
"title": "模型",
3636
"defaultValue": "gpt-3.5-turbo",
3737
"menuValues": [
38+
{
39+
"title": "gpt-3.5-turbo-0613 (recommended)",
40+
"value": "gpt-3.5-turbo-0613"
41+
},
3842
{
3943
"title": "gpt-3.5-turbo-0301",
4044
"value": "gpt-3.5-turbo-0301"
4145
},
4246
{
43-
"title": "gpt-3.5-turbo (recommended)",
47+
"title": "gpt-3.5-turbo-16k",
48+
"value": "gpt-3.5-turbo-16k"
49+
},
50+
{
51+
"title": "gpt-3.5-turbo",
4452
"value": "gpt-3.5-turbo"
4553
},
4654
{
@@ -51,6 +59,10 @@
5159
"title": "gpt-4-0314",
5260
"value": "gpt-4-0314"
5361
},
62+
{
63+
"title": "gpt-4-0613",
64+
"value": "gpt-4-0613"
65+
},
5466
{
5567
"title": "gpt-4-32k",
5668
"value": "gpt-4-32k"
@@ -59,6 +71,10 @@
5971
"title": "gpt-4-32k-0314",
6072
"value": "gpt-4-32k-0314"
6173
},
74+
{
75+
"title": "gpt-4-32k-0613",
76+
"value": "gpt-4-32k-0613"
77+
},
6278
{
6379
"title": "text-davinci-003",
6480
"value": "text-davinci-003"

src/main.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@
33
var lang = require("./lang.js");
44
var ChatGPTModels = [
55
"gpt-3.5-turbo",
6+
"gpt-3.5-turbo-16k",
67
"gpt-3.5-turbo-0301",
8+
"gpt-3.5-turbo-0613",
79
"gpt-4",
810
"gpt-4-0314",
11+
"gpt-4-0613",
912
"gpt-4-32k",
1013
"gpt-4-32k-0314",
14+
"gpt-4-32k-0613",
1115
];
1216

1317
/**

0 commit comments

Comments
 (0)