{"id":26700294,"url":"https://github.com/helloxz/transmute","last_synced_at":"2025-09-02T12:52:08.582Z","repository":{"id":282817341,"uuid":"947674568","full_name":"helloxz/transmute","owner":"helloxz","description":"Transmute是一款使用AI大模型驱动的智能翻译工具，可以同时对接多个大模型，比如OpenAI、DeepSeek、通义千问、豆包等。","archived":false,"fork":false,"pushed_at":"2025-04-29T03:08:21.000Z","size":397,"stargazers_count":17,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-29T04:30:59.741Z","etag":null,"topics":["ai-translator","openai","translate"],"latest_commit_sha":null,"homepage":"https://transmute.aimerge.cc","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/helloxz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-03-13T04:14:54.000Z","updated_at":"2025-04-29T03:08:25.000Z","dependencies_parsed_at":"2025-04-29T04:32:01.715Z","dependency_job_id":null,"html_url":"https://github.com/helloxz/transmute","commit_stats":null,"previous_names":["helloxz/transmute"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/helloxz/transmute","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helloxz%2Ftransmute","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helloxz%2Ftransmute/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helloxz%2Ftransmute/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helloxz%2Ftransmute/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/helloxz","download_url":"https://codeload.github.com/helloxz/transmute/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helloxz%2Ftransmute/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273287616,"owners_count":25078571,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-02T02:00:09.530Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-translator","openai","translate"],"created_at":"2025-03-27T00:01:55.308Z","updated_at":"2025-09-02T12:52:08.576Z","avatar_url":"https://github.com/helloxz.png","language":"HTML","funding_links":[],"categories":["HTML"],"sub_categories":[],"readme":"# Transmute\n\nTransmute是一款使用AI大模型驱动的智能翻译工具，可以同时对接多个大模型，比如OpenAI、DeepSeek、通义千问、豆包等。Transmute使用Python 3 + FastAPI技术开发。\n\n## 主要特点\n\n* 支持接入多种AI大模型，只要兼容OpenAI API接口均可。\n* 支持多种AI模型切换\n* AI智能翻译：智能纠错、智能识别、语意优化等。\n* 支持流式传输\n* 支持限制IP请求频率\n* 支持限制输入字符串长度\n* PWA支持\n\n## 截图\n\n![2f339be26c1f5bf9.png](https://img.rss.ink/imgs/2025/03/17/2f339be26c1f5bf9.png)\n\n## 安装\n\n\u003e 目前仅支持Docker安装，请确保您已经安装Docker和Docker Compose\n\n新建`docker-compose.yaml`文件，内容如下：\n\n```yaml\nversion: '3.8'\n\nservices:\n  transmute:\n    container_name: transmute\n    image: helloz/transmute\n    ports:\n      - \"2082:2082\"\n    restart: always\n    volumes:\n      - /opt/transmute/app/data:/opt/transmute/app/data\n```\n\n然后输入`docker-compose up -d`启动。\n\n## 使用\n\nTransmute配置文件位于挂载目录下的`config/config.json`，使用标准的json格式：\n\n```json\n{\n    \"redis\":{\n        \"host\":\"127.0.0.1\",\n        \"port\":6379,\n        \"password\":\"transmute2082\",\n        \"db\":0\n    },\n    \"app\":{\n        \"req_limit\":100,\n        \"word_limit\":3000\n    },\n    \"site\":{\n        \"title\":\"Transmute\",\n        \"keywords\":\"Transmute,北冥翻译,智能翻译,AI翻译,翻译,翻译工具,翻译软件,翻译器,翻译网站\",\n        \"description\":\"Transmute是一款基于人工智能的翻译工具，支持多种语言互译，提供多种翻译模型。\",\n        \"sub_title\":\"AI大模型驱动的智能翻译工具\"\n    },\n    \"models\":[\n        {\n            \"base_url\":\"https://api.openai.com/v1\",\n            \"model\":\"gpt-4o\",\n            \"api_key\":\"sk-xxx\",\n            \"name\":\"GPT-4o\"\n        }\n    ]\n}\n```\n\n需要修改`models`，添加您自己的AI大模型接口，大模型接口需要兼容OpenAI API格式，同时只需要路径的前缀部分，比如完整的API地址为：`https://api.openai.com/v1/chat/completions`，您只需要填写`https://api.openai.com/v1`，不需要末尾的`/chat/completions`，参数含义如下：\n\n* `models.[0].base_url`：API前缀地址，不需要末尾的`/chat/completions`\n* `models.[0].model`：模型参数值\n* `models.[0].api_key`：密钥信息\n* `models.[0].name`：前端显示的模型名称\n\n可以在`models`节点下添加多个模型，比如：\n\n```\n\"models\":[\n        {\n            \"base_url\":\"https://api.openai.com/v1\",\n            \"model\":\"gpt-4o\",\n            \"api_key\":\"sk-xxx\",\n            \"name\":\"GPT-4o\"\n        },\n        {\n            \"base_url\":\"https://api.deepseek.com/v1\",\n            \"model\":\"deepseek-chat\",\n            \"api_key\":\"sk-xxx\",\n            \"name\":\"DeepSeek\"\n        }\n    ]\n```\n\n**注意事项：**\n\n1. 参数修改完毕后请务必校验json格式正确，否则可能导致程序异常\n2. 修改参数后需要重启容器`docker restart transmute`才会生效\n3. 然后访问`http://IP:2082`测试\n\n**其他参数**\n\n* `app.req_limit`：单个访客请求频率限制，单位为24H，超出请求频率后将被限制\n* `app.word_limit`：最大可输入的字符串长度\n* `site`：站点相关的信息\n\n### 快捷键\n\n* 支持`Ctrl + Enter` 或 `Command + Enter`提交翻译\n* 支持 `ESC` 清空输入内容和结果\n\n## 问题反馈\n\n* 如果有任何问题可以在[Issues](https://github.com/helloxz/transmute/issues) 中提交。\n* 或者添加我的微信：`xiaozme`，请务必备注Transmute\n\n## 其他产品\n\n如果您有兴趣，还可以了解我们的其他产品。\n\n* [Zdir](https://www.zdir.pro/zh/) - 一款轻量级、多功能的文件分享程序。\n* [OneNav](https://www.onenav.top/) - 高效的浏览器书签管理工具，将您的书签集中式管理。\n* [ImgURL](https://www.imgurl.org/) - 2017年上线的免费图床。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelloxz%2Ftransmute","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhelloxz%2Ftransmute","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelloxz%2Ftransmute/lists"}