Skip to content

Commit 00eebae

Browse files
committed
chore: improve Model options
1 parent 51a3366 commit 00eebae

File tree

2 files changed

+9
-38
lines changed

2 files changed

+9
-38
lines changed

src/info.json

Lines changed: 8 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
"identifier": "apiVersion",
3535
"type": "text",
3636
"title": "API Version",
37-
"defaultValue": "2023-03-15-preview",
3837
"desc": "可选项。此值为在使用 Azure 模型时采用的 Chat completions API 版本,不支持 2023-03-15-preview 之前的版本",
3938
"textConfig": {
4039
"type": "visible",
@@ -59,64 +58,36 @@
5958
"defaultValue": "gpt-3.5-turbo",
6059
"menuValues": [
6160
{
62-
"title": "custom",
61+
"title": "Custom",
6362
"value": "custom"
6463
},
6564
{
66-
"title": "gpt-3.5-turbo-1106 (recommended)",
67-
"value": "gpt-3.5-turbo-1106"
68-
},
69-
{
70-
"title": "gpt-3.5-turbo-0613",
71-
"value": "gpt-3.5-turbo-0613"
72-
},
73-
{
74-
"title": "gpt-3.5-turbo-0301",
75-
"value": "gpt-3.5-turbo-0301"
76-
},
77-
{
78-
"title": "gpt-3.5-turbo-16k",
79-
"value": "gpt-3.5-turbo-16k"
80-
},
81-
{
82-
"title": "gpt-3.5-turbo",
65+
"title": "GPT-3.5 Turbo",
8366
"value": "gpt-3.5-turbo"
8467
},
8568
{
86-
"title": "gpt-4",
69+
"title": "GPT-4",
8770
"value": "gpt-4"
8871
},
8972
{
90-
"title": "gpt-4o",
73+
"title": "GPT-4o",
9174
"value": "gpt-4o"
9275
},
9376
{
94-
"title": "gpt-4-0314",
95-
"value": "gpt-4-0314"
96-
},
97-
{
98-
"title": "gpt-4-0613",
99-
"value": "gpt-4-0613"
77+
"title": "GPT-4 Turbo",
78+
"value": "gpt-4-turbo"
10079
},
10180
{
102-
"title": "gpt-4-32k",
81+
"title": "GPT-4 32K",
10382
"value": "gpt-4-32k"
104-
},
105-
{
106-
"title": "gpt-4-32k-0314",
107-
"value": "gpt-4-32k-0314"
108-
},
109-
{
110-
"title": "gpt-4-32k-0613",
111-
"value": "gpt-4-32k-0613"
11283
}
11384
]
11485
},
11586
{
11687
"identifier": "customModel",
11788
"type": "text",
11889
"title": "自定义模型",
119-
"desc": "可选项。当 Model 选择为 custom 时,此项为必填项。请填写有效的模型名称",
90+
"desc": "可选项。当 Model 选择 Custom 时,此项为必填项。请填写有效的模型名称",
12091
"textConfig": {
12192
"type": "visible",
12293
"placeholderText": "gpt-3.5-turbo"

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ function supportLanguages() {
328328
* @type {Bob.PluginValidate}
329329
*/
330330
function pluginValidate(completion) {
331-
const { apiKeys, apiUrl, apiVersion, deploymentName } = $option;
331+
const { apiKeys, apiUrl, deploymentName } = $option;
332332
if (!apiKeys) {
333333
handleValidateError(completion, {
334334
type: "secretKey",

0 commit comments

Comments
 (0)