Skip to content

feat: add SiliconFlow translation service#1393

Open
littleLice wants to merge 5 commits intowindingwind:mainfrom
littleLice:main
Open

feat: add SiliconFlow translation service#1393
littleLice wants to merge 5 commits intowindingwind:mainfrom
littleLice:main

Conversation

@littleLice
Copy link

  • 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
@github-actions
Copy link
Contributor

github-actions bot commented Mar 3, 2026

@littleLice
I automatically applied lint fixes but couldn’t push to your branch—could you please run:

npm run lint

and push the results? Thanks!

Add support for SiliconFlow's global API endpoint (api.siliconflow.com)
alongside the existing China endpoint (api.siliconflow.cn).
@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2026

@littleLice
I automatically applied lint fixes but couldn’t push to your branch—could you please run:

npm run lint

and push the results? Thanks!

@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2026

@littleLice
I automatically applied lint fixes but couldn’t push to your branch—could you please run:

npm run lint

and push the results? Thanks!

- 添加 siliconflowGlobal.endPoint 配置项
- 添加 siliconflowGlobal.model 配置项
- 添加 siliconflowGlobal.temperature 配置项
- 添加 siliconflowGlobal.prompt 配置项
- 添加 siliconflowGlobal.stream 配置项
@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2026

@littleLice
I automatically applied lint fixes but couldn’t push to your branch—could you please run:

npm run lint

and push the results? Thanks!

- 在多语言文件中添加 Ollama 服务名称及配置项翻译
- 更新类型定义文件以包含 Ollama 相关国际化键值
- 实现 Ollama 服务类并将其注册到翻译服务列表
- 配置 Ollama 服务的端点、模型、温度、提示词和流式输出选项
- 移除重复的 siliconflowGlobal 配置项定义
@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2026

@littleLice
I automatically applied lint fixes but couldn’t push to your branch—could you please run:

npm run lint

and push the results? Thanks!

@@ -1,5 +1,5 @@
import { getPref } from "../../utils/prefs";
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

irrelevant changes

data: Parameters<TranslateService["translate"]>[0],
) {
const apiURL =
(getPref(`${SILICONFLOW_PREF_PREFIX}.endPoint`) as string) ||
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason not reusing chatgpt implementations here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants