[PR #8] [CLOSED] 新增DEEPSEEK_PROVIDER用于区分不同提供商, 支持设定temperature等参数 #97

Closed
opened 2026-02-27 01:56:13 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ErlichLiu/DeepClaude/pull/8
Author: @GowayLee
Created: 2/4/2025
Status: Closed

Base: mainHead: dev


📝 Commits (2)

  • 7992d6e feat: 新增DEEPSEEK_PROVIDER用于区分不同提供商
  • f1c7f59 feat: 新增支持temperature, top_p, presence_penalty, frequency_penalty参数

📊 Changes

5 files changed (+112 additions, -48 deletions)

View changed files

📝 .env.example (+7 -0)
📝 app/clients/claude_client.py (+30 -12)
📝 app/clients/deepseek_client.py (+3 -2)
📝 app/deepclaude/deepclaude.py (+23 -11)
📝 app/main.py (+49 -23)

📄 Description

主要更改

增加DEEPSEEK_PROVIDER环境变量用于区分不同DeepSeek R1的提供商

更改说明

1. .env.example

鉴于DeepSeek的提供商日渐复杂而且众多R1蒸馏模型上架, DeepClaude需要适应不同提供商的格式来针对性提取推理过程. 故增加DEEPSEEK_PROVIDER环境变量, 专门用于进行提供商区分.

2. deepseek_client.py

原先使用modle作为区分推理过程格式/数据结构的依据, 这样使得R1的模型名称变得难以扩展(无法使用低价的蒸馏模型来代替R1). 改为使用provider来区分, 更符合"数据结构有别"的内在逻辑. 同时也为后续增加适配Provider留下扩展空间.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ErlichLiu/DeepClaude/pull/8 **Author:** [@GowayLee](https://github.com/GowayLee) **Created:** 2/4/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `dev` --- ### 📝 Commits (2) - [`7992d6e`](https://github.com/ErlichLiu/DeepClaude/commit/7992d6e3afd365e5b81f80e20dfb0da101b090bf) feat: 新增DEEPSEEK_PROVIDER用于区分不同提供商 - [`f1c7f59`](https://github.com/ErlichLiu/DeepClaude/commit/f1c7f594746fcd6d77e8a562867d9960d4c9ee08) feat: 新增支持temperature, top_p, presence_penalty, frequency_penalty参数 ### 📊 Changes **5 files changed** (+112 additions, -48 deletions) <details> <summary>View changed files</summary> 📝 `.env.example` (+7 -0) 📝 `app/clients/claude_client.py` (+30 -12) 📝 `app/clients/deepseek_client.py` (+3 -2) 📝 `app/deepclaude/deepclaude.py` (+23 -11) 📝 `app/main.py` (+49 -23) </details> ### 📄 Description ## 主要更改 增加`DEEPSEEK_PROVIDER`环境变量用于区分不同DeepSeek R1的提供商 ## 更改说明 ### 1. `.env.example` 鉴于DeepSeek的提供商日渐复杂而且众多R1蒸馏模型上架, DeepClaude需要适应不同提供商的格式来针对性提取推理过程. 故增加`DEEPSEEK_PROVIDER`环境变量, 专门用于进行提供商区分. ### 2. `deepseek_client.py` 原先使用`modle`作为区分推理过程格式/数据结构的依据, 这样使得R1的模型名称变得难以扩展(无法使用低价的蒸馏模型来代替R1). 改为使用`provider`来区分, 更符合"数据结构有别"的内在逻辑. 同时也为后续增加适配Provider留下扩展空间. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 01:56:13 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/DeepClaude#97
No description provided.