diff --git a/appcast.json b/appcast.json index 5a488e9..4aaaa11 100644 --- a/appcast.json +++ b/appcast.json @@ -2,10 +2,10 @@ "identifier": "me.vacuity.chat.gptranslate", "versions": [ { - "version": "1.3.6", - "desc": "https://github.com/vacuityv/bob-plugin-vac-gptranslate/releases/tag/1.3.6", - "sha256": "6630c210f40d4711b37f6c8dbdca63584599451877e04539b2e381760725c77d", - "url": "https://github.com/vacuityv/bob-plugin-vac-gptranslate/releases/download/1.3.6/bob-plugin-vac-gptranslate.bobplugin", + "version": "1.3.7", + "desc": "https://github.com/vacuityv/bob-plugin-vac-gptranslate/releases/tag/1.3.7", + "sha256": "5cdecbd8ed3db9266ce689e770454a8d40d4300619155730146ea903b2e3c20d", + "url": "https://github.com/vacuityv/bob-plugin-vac-gptranslate/releases/download/1.3.7/bob-plugin-vac-gptranslate.bobplugin", "minBobVersion": "0.5.0" } ] diff --git a/info.json b/info.json index 553d0c5..5276784 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "identifier": "me.vacuity.chat.gptranslate", - "version": "1.3.6", + "version": "1.3.7", "category": "translate", "name": "GPTranslate", "summary": "调用chatgpt/gemini/claude实现翻译功能", @@ -75,6 +75,16 @@ "value": "y" } ] + }, + { + "identifier": "prompt", + "type": "text", + "title": "prompt", + "textConfig": { + "type": "visible", + "height": 60, + "placeholderText": "请输入您自定义的prompt(如果你不知道prompt是什么,请不要输入)" + } } ] } diff --git a/main.js b/main.js index 8adc676..73e4fb6 100644 --- a/main.js +++ b/main.js @@ -209,6 +209,7 @@ function initReqBody(query) { var account = $option.loginAccount; var password = $option.loginPassword; var modelType = $option.modelType; + var prompt = $option.prompt; var content = query['text']; return { email: account, @@ -216,7 +217,8 @@ function initReqBody(query) { content: content, modelType: modelType, targetLanguage: langMap[query['to']], - translateFrom: 'bob' + translateFrom: 'bob', + prompt: prompt }; }