[{"data":1,"prerenderedAt":172},["ShallowReactive",2],{"docs-zh-Hant-/zh-hant/docs/service/ai/custom":3},{"id":4,"title":5,"body":6,"description":164,"extension":165,"meta":166,"navigation":167,"path":168,"seo":169,"stem":170,"__hash__":171},"docs_zh_hant/zh-Hant/docs/service/ai/custom.md","自訂翻譯服務",{"type":7,"value":8,"toc":157},"minimark",[9,12,21,25,31,38,41,44,85,88,91,110,116,119,122,133,151],[10,11,5],"h1",{"id":5},[13,14,15,16,20],"p",{},"對於不在內建服務清單中的AI 服務，Doco Translate 支援透過新增 ",[17,18,19],"strong",{},"自訂服務"," 的方式接上其他AI 大模型服務供應商進行翻譯",[22,23,24],"h2",{"id":24},"新增自訂服務",[13,26,27,28,30],{},"進入Doco Translate 設定-服務面板，左側服務清單的下方，點選 ",[17,29,24],{}," 按鈕，開啟自訂服務面板，輸入服務名，選擇API 介面協議，即可快速新增自訂服務",[13,32,33],{},[34,35],"img",{"alt":36,"src":37},"新增自訂翻譯服務","/images/docs/custom-service-form.webp",[22,39,40],{"id":40},"介面協議",[13,42,43],{},"Doco Translate 支援5 種主流的AI 介面協議",[45,46,47,57,64,71,78],"ol",{},[48,49,50],"li",{},[51,52,56],"a",{"href":53,"rel":54},"https://platform.openai.com/docs/api-reference/chat/create",[55],"nofollow","OpenAI 協定（ChatCompletion）",[48,58,59],{},[51,60,63],{"href":61,"rel":62},"https://platform.claude.com/docs/en/api/messages/create",[55],"Anthropic 協定（Response）",[48,65,66],{},[51,67,70],{"href":68,"rel":69},"https://ai.google.dev/api",[55],"Gemini 協議",[48,72,73],{},[51,74,77],{"href":75,"rel":76},"https://docs.ollama.com/api/chat",[55],"Ollama 協議",[48,79,80],{},[51,81,84],{"href":82,"rel":83},"https://lmstudio.ai/docs/developer/rest/chat",[55],"LM Studio 協議",[22,86,87],{"id":87},"自訂請求參數",[13,89,90],{},"Doco Translate 支援自訂請求參數設置，支援設定：",[92,93,94,97,100,107],"ul",{},[48,95,96],{},"介面Host：切換API 介面和Coding Plan 介面時使用",[48,98,99],{},"介面路徑：第三方服務供應商提供非標準介面路徑時可自行設定",[48,101,102,103,106],{},"請求體參數：",[17,104,105],{},"禁用思考"," 相關參數可在此設置，建議翻譯場景中停用思考",[48,108,109],{},"請求頭參數：特殊場景下使用",[13,111,112],{},[34,113],{"alt":114,"src":115},"配置自訂請求參數","/images/docs/custom-request-parameters.webp",[22,117,118],{"id":118},"自訂提示詞",[13,120,121],{},"Doco Translate 內建預設提示詞",[123,124,129],"pre",{"className":125,"code":127,"language":128},[126],"language-text","Translate the input text into {{TARGET_LANGUAGE}}.\n\nINPUT:\n{{TEXT}}\n","text",[130,131,127],"code",{"__ignoreMap":132},"",[13,134,135,136,139,140,143,144,139,147,150],{},"點擊編輯提示詞按鈕，即可自訂編輯翻譯提示詞，用於調整AI 大模型翻譯的輸出風格與效果，其中 ",[130,137,138],{},"{{TARGET_LANGUAGE}}"," 和 ",[130,141,142],{},"{{TEXT}}"," 為 ",[17,145,146],{},"目標語言",[17,148,149],{},"輸入文字"," 的替換佔位符，需保留",[13,152,153],{},[34,154],{"alt":155,"src":156},"編輯自訂提示詞","/images/docs/custom-prompt.webp",{"title":132,"searchDepth":158,"depth":158,"links":159},2,[160,161,162,163],{"id":24,"depth":158,"text":24},{"id":40,"depth":158,"text":40},{"id":87,"depth":158,"text":87},{"id":118,"depth":158,"text":118},"新增內建清單以外的AI 服務，並配置請求參數與自訂提示詞。","md",{},true,"/zh-hant/docs/service/ai/custom",{"title":5,"description":164},"zh-Hant/docs/service/ai/custom","NJRSzqXS9uE6KeqaItFKzNQCyBa9K-9UIDBZa7i_oQ4",1787207635561]