mirror of
https://github.com/ErlichLiu/DeepClaude.git
synced 2026-04-25 13:15:54 +03:00
[PR #8] [CLOSED] 新增DEEPSEEK_PROVIDER用于区分不同提供商, 支持设定temperature等参数 #97
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/DeepClaude#97
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ErlichLiu/DeepClaude/pull/8
Author: @GowayLee
Created: 2/4/2025
Status: ❌ Closed
Base:
main← Head:dev📝 Commits (2)
7992d6efeat: 新增DEEPSEEK_PROVIDER用于区分不同提供商f1c7f59feat: 新增支持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.