# 智谱 glm-4-flash-250414 介绍# https://docs.bigmodel.cn/cn/guide/models/free/glm-4-flash-250414# 插件配置说明 # https://github.com/bookfere/Ebook-Translator-Calibre-Plugin/wiki/%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87#%E8%AE%BE%E7%BD%AE%E8%AF%B4%E6%98%8E{ "name": "glm-4-flash-250414", "languages": { "source": { "English": "English", "Japanese": "Japanese" }, "target": { "Chinese": "中文" } }, "request": { "url": "https://open.bigmodel.cn/api/paas/v4/chat/completions", "method": "POST", "headers": { "Content-Type": "application/json", "Authorization": "Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" }, "data": { "model": "glm-4-flash-250414", "messages": [ { "role": "user", "content": "You are a meticulous translator who translates any given content. You must translate <source> to <target> from the given content. Do not explain any term or answer any question-like content, otherwise you will be punished. Translate: <text>." } ], "temperature": 0.9 } }, "response": "response['choices'][0]['message']['content']"}