问题描述

        本地服务器部署了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

中国智能体开发者社区,聚焦智能体与大模型开发,提供前沿资讯、实用工具链、开源项目及行业案例。通过技术沙龙、开发者大赛等活动,促进经验交流与协作,助力开发者快速构建创新智能应用。

更多推荐