调用 SiliconCloud 的 API,实现快速跨语言翻译的目标
硅基流动的 SiliconCloud 第一时间提供 GLM4 、 Qwen2 、 DeepSeek V2 、零一万物等大模型,将三方大模型和翻译插件相结合,极大改善翻译时的速度和准确度。
所需软件
https://www.tampermonkey.net/
篡改猴 (Tampermonkey) 是拥有 超过 1000 万用户 的最流行的浏览器扩展之一。下载地址https://www.tampermonkey.net/crx/tampermonkey_stable.crx
https://greasyfork.org/zh-CN/scripts/471106-atcoder-better
atcode.jp自动在线翻译脚本。
https://greasyfork.org/zh-CN/scripts/465777-codeforces-better
这是codeforces.com自动在线翻译脚本。
重点来了,注册SiliconCloud
打开 SiliconCloud 官网 并注册账号(如果注册过,直接登录即可)。他的模型广场有非常的的模型
注册网站 :https://cloud.siliconflow.cn/i/DosittDz
获取 API Key
完成注册后,打开API密钥 ,创建新的 API Key,点击密钥进行复制,以备后续使用。
atcoder-better的设置
打开atcoder官网 随便点击一个比赛 https://atcoder.jp/contests/abc384/tasks/abc384_a
名称随便填
模型去模型广场选一个我默认选择的是免费的官方推荐的阿里大模型Qwen/Qwen2-7B-Instruct
你也可以选择收费的Qwen/Qwen2.5-32B-Instruct
key 就是我们前面复制的api密钥
proxy API 务必要改为https://api.siliconflow.cn/v1/chat/completions
最后记得点保存!!
看看效果
打开https://atcoder.jp/contests/abc384/tasks/abc384_a