-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
229 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,26 +8,38 @@ | |
"author": "yetone <[email protected]>", | ||
"homepage": "https://github.com/yetone/bob-plugin-openai-polisher", | ||
"appcast": "https://raw.githubusercontent.com/yetone/bob-plugin-openai-polisher/main/appcast.json", | ||
"minBobVersion": "0.5.0", | ||
"minBobVersion": "1.8.0", | ||
"options": [ | ||
{ | ||
"identifier": "apiUrl", | ||
"type": "text", | ||
"title": "API URL", | ||
"defaultValue": "https://api.openai.com", | ||
"desc": "可选项。如果您的网络环境需要代理才能访问 OpenAI API, 可在这里修改为反代 API 的地址,默认为 https://api.openai.com" | ||
"desc": "可选项。如果您的网络环境需要代理才能访问 OpenAI API, 可在这里修改为反代 API 的地址", | ||
"textConfig": { | ||
"type": "visible", | ||
"placeholderText": "https://api.openai.com" | ||
} | ||
}, | ||
{ | ||
"identifier": "deploymentName", | ||
"type": "text", | ||
"title": "Dep. Name", | ||
"desc": "可选项。如果您使用的是 Azure OpenAI Service,需要填写对应的 deployment ID" | ||
"desc": "可选项。此值为在部署模型时为部署选择的自定义名称,可在 Azure 门户中的 “资源管理“>“部署“下查看", | ||
"textConfig": { | ||
"type": "visible" | ||
} | ||
}, | ||
{ | ||
"identifier": "apiKeys", | ||
"type": "text", | ||
"title": "API KEY", | ||
"desc": "必填项。可以用英文逗号分割多个 API KEY 以实现额度加倍及负载均衡" | ||
"desc": "必填项。可以用英文逗号分割多个 API KEY 以实现额度加倍及负载均衡", | ||
"textConfig": { | ||
"type": "secure", | ||
"height": "40", | ||
"placeholderText": "sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" | ||
} | ||
}, | ||
{ | ||
"identifier": "model", | ||
|
@@ -72,15 +84,36 @@ | |
{ | ||
"identifier": "customSystemPrompt", | ||
"type": "text", | ||
"title": "Sys PPT", | ||
"title": "系统指令", | ||
"defaultValue": "Revise the following sentences to make them more clear, concise, and coherent.", | ||
"desc": "可选项。自定义 System Prompt;必须开启明文显示才可输入中文" | ||
"desc": "可选项。自定义 System Prompt,填写则会覆盖默认的 System Prompt。自定义 Prompt可使用以下变量:\n\n`$text` - 需要润色的文本,即翻译窗口输入框内的文本 `$sourceLang` - 原文语言,即翻译窗口输入框内文本的语言,比如「简体中文」\n\n`$targetLang` - 目标语言,可以在翻译窗口中手动选择或自动检测,比如「English」", | ||
"textConfig": { | ||
"type": "visible", | ||
"height": "100", | ||
"placeholderText": "Revise the following sentences to make them more clear, concise, and coherent.", | ||
"keyWords": [ | ||
"$text", | ||
"$sourceLang", | ||
"$targetLang" | ||
] | ||
} | ||
}, | ||
{ | ||
"identifier": "customUserPrompt", | ||
"type": "text", | ||
"title": "User PPT", | ||
"desc": "可选项。自定义 User Prompt,输入内容会自动拼接在句尾" | ||
"title": "用户指令", | ||
"defaultValue": "$text", | ||
"desc": "可选项。自定义 User Prompt,填写则会覆盖默认的 User Prompt,默认值为`$text`(即翻译窗口输入框内的文本)\n\n自定义 Prompt 中可以使用与系统指令中相同的变量", | ||
"textConfig": { | ||
"type": "visible", | ||
"height": "100", | ||
"placeholderText": "$text", | ||
"keyWords": [ | ||
"$text", | ||
"$sourceLang", | ||
"$targetLang" | ||
] | ||
} | ||
}, | ||
{ | ||
"identifier": "polishingMode", | ||
|
Oops, something went wrong.