feat: add SiliconFlow translation service#1393
Open
littleLice wants to merge 5 commits intowindingwind:mainfrom
Open
feat: add SiliconFlow translation service#1393littleLice wants to merge 5 commits intowindingwind:mainfrom
littleLice wants to merge 5 commits intowindingwind:mainfrom
Conversation
littleLice
commented
Mar 3, 2026
- Add new SiliconFlow API integration with streaming support
- Support configurable endpoint, model, temperature and prompt
- Add i18n strings for en-US and zh-CN locales
- Add preference settings for SiliconFlow service
- Add new SiliconFlow API integration with streaming support - Support configurable endpoint, model, temperature and prompt - Add i18n strings for en-US and zh-CN locales - Add preference settings for SiliconFlow service
Contributor
|
@littleLice npm run lintand push the results? Thanks! |
Add support for SiliconFlow's global API endpoint (api.siliconflow.com) alongside the existing China endpoint (api.siliconflow.cn).
Contributor
|
@littleLice npm run lintand push the results? Thanks! |
Contributor
|
@littleLice npm run lintand push the results? Thanks! |
- 添加 siliconflowGlobal.endPoint 配置项 - 添加 siliconflowGlobal.model 配置项 - 添加 siliconflowGlobal.temperature 配置项 - 添加 siliconflowGlobal.prompt 配置项 - 添加 siliconflowGlobal.stream 配置项
Contributor
|
@littleLice npm run lintand push the results? Thanks! |
- 在多语言文件中添加 Ollama 服务名称及配置项翻译 - 更新类型定义文件以包含 Ollama 相关国际化键值 - 实现 Ollama 服务类并将其注册到翻译服务列表 - 配置 Ollama 服务的端点、模型、温度、提示词和流式输出选项 - 移除重复的 siliconflowGlobal 配置项定义
Contributor
|
@littleLice npm run lintand push the results? Thanks! |
windingwind
requested changes
Mar 4, 2026
| @@ -1,5 +1,5 @@ | |||
| import { getPref } from "../../utils/prefs"; | |||
| data: Parameters<TranslateService["translate"]>[0], | ||
| ) { | ||
| const apiURL = | ||
| (getPref(`${SILICONFLOW_PREF_PREFIX}.endPoint`) as string) || |
Owner
There was a problem hiding this comment.
any reason not reusing chatgpt implementations here?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.