bob-plugin-ollama-translator

为Bob翻译软件开发的插件,支持通过本地Ollama服务或ChatGPT接口实现单词/整句翻译和百科解释功能,支持自定义Prompt、模型和API URL。

bob-plugin-ollama-translatorimage项目地址:https://github.com/CaicoLeung/bob-plugin-ollama-translatorbob-plugin-ollama-translator是一个为bob编写的通过调用本地Ollama服务或ChatGPT服务接口实现单词/整句翻译/百科解释的插件(需要bob版本>=1.8.0)## Bob效果展示### 翻译模式1. 如果输入是单词,自动进入学习模式 <img width="416" alt="image" src="https://github.com/user-attachments/assets/2121dd9e-7741-44ca-b02e-a74a312a665b">2. 如果是整句,则直接翻译 <img width="415" alt="image" src="https://github.com/user-attachments/assets/82a60fd3-1b9f-4c20-88bb-914e2036e3d8">### 解释模式 <img width="415" alt="image" src="https://github.com/user-attachments/assets/ac38c1e0-1dd8-448c-9d78-46d39659ea18">## 支持功能1. 支持Ollama和OpenAI服务2. 支持切换翻译模式和解释模式3. 自定义Prompt4. 自定义模型5. 自定义API URL## 配置项 <img width="466" alt="image" src="https://github.com/user-attachments/assets/816f2c65-ab2d-4152-bf96-82654bcbfc25">