Skip to content

Commit

Permalink
chore: improve Model options
Browse files Browse the repository at this point in the history
  • Loading branch information
liby committed May 17, 2024
1 parent 51a3366 commit 00eebae
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 38 deletions.
45 changes: 8 additions & 37 deletions src/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
"identifier": "apiVersion",
"type": "text",
"title": "API Version",
"defaultValue": "2023-03-15-preview",
"desc": "可选项。此值为在使用 Azure 模型时采用的 Chat completions API 版本,不支持 2023-03-15-preview 之前的版本",
"textConfig": {
"type": "visible",
Expand All @@ -59,64 +58,36 @@
"defaultValue": "gpt-3.5-turbo",
"menuValues": [
{
"title": "custom",
"title": "Custom",
"value": "custom"
},
{
"title": "gpt-3.5-turbo-1106 (recommended)",
"value": "gpt-3.5-turbo-1106"
},
{
"title": "gpt-3.5-turbo-0613",
"value": "gpt-3.5-turbo-0613"
},
{
"title": "gpt-3.5-turbo-0301",
"value": "gpt-3.5-turbo-0301"
},
{
"title": "gpt-3.5-turbo-16k",
"value": "gpt-3.5-turbo-16k"
},
{
"title": "gpt-3.5-turbo",
"title": "GPT-3.5 Turbo",
"value": "gpt-3.5-turbo"
},
{
"title": "gpt-4",
"title": "GPT-4",
"value": "gpt-4"
},
{
"title": "gpt-4o",
"title": "GPT-4o",
"value": "gpt-4o"
},
{
"title": "gpt-4-0314",
"value": "gpt-4-0314"
},
{
"title": "gpt-4-0613",
"value": "gpt-4-0613"
"title": "GPT-4 Turbo",
"value": "gpt-4-turbo"
},
{
"title": "gpt-4-32k",
"title": "GPT-4 32K",
"value": "gpt-4-32k"
},
{
"title": "gpt-4-32k-0314",
"value": "gpt-4-32k-0314"
},
{
"title": "gpt-4-32k-0613",
"value": "gpt-4-32k-0613"
}
]
},
{
"identifier": "customModel",
"type": "text",
"title": "自定义模型",
"desc": "可选项。当 Model 选择为 custom 时,此项为必填项。请填写有效的模型名称",
"desc": "可选项。当 Model 选择 Custom 时,此项为必填项。请填写有效的模型名称",
"textConfig": {
"type": "visible",
"placeholderText": "gpt-3.5-turbo"
Expand Down
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ function supportLanguages() {
* @type {Bob.PluginValidate}
*/
function pluginValidate(completion) {
const { apiKeys, apiUrl, apiVersion, deploymentName } = $option;
const { apiKeys, apiUrl, deploymentName } = $option;
if (!apiKeys) {
handleValidateError(completion, {
type: "secretKey",
Expand Down

0 comments on commit 00eebae

Please sign in to comment.