问题描述

        本地服务器部署了Ollama服务,安装了Deepseek、QWen等一系列大语言模型。如何为Zotero 的PDF 翻译插件配置私有大模型进行翻译呢?

解决方案

        大模型私有部署不再赘述。本节详细说明如何配置Zotero插件。

        首先,翻译插件设置中,选择自定义GPT,密钥随便填。接口按如下格式填写

http://大模型服务IP:端口号/v1/chat/completions

模型根据自己的填,我用的translate7b:latest,速度快质量好。温度设置为0,最尊重和贴合原文

提示词按如下。注意:该提示词偏向计算机科学技术领域,可以根据自己需要修改

You are a professional literature translation expert specializing in computer science research papers.please translate the academic text enclosed in  from ${langFrom} to ${langTo} in a faithful and literal manner. Preserve the original structure, technical details, and terminology as much as possible, even if the sentence structure feels formal. Avoid paraphrasing or simplifying content. Provide only the translated result without any additional explanation. The text is as follows:    ${sourceText}   

配置完成,查看翻译效果,非常好用

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐