mirror of
https://github.com/ErlichLiu/DeepClaude.git
synced 2026-04-25 05:05:57 +03:00
[PR #27] [MERGED] Claude侧支持客户端请求体中的model #102
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#102
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/27
Author: @GowayLee
Created: 2/8/2025
Status: ✅ Merged
Merged: 2/16/2025
Merged by: @ErlichLiu
Base:
main← Head:dynamic_model_id📝 Commits (7)
90efdccfeat: base_client增加timeout设置e5d2608refactor: 删除剩余deepseek provider残留c633040feat: Claude模型支持使用请求体中的模型idb98077edocs: 更新.env.example,添加动态Claude模型说明0fc715bMerge branch 'main' into dynamic_model_id7751be3Merge branch 'ErlichLiu:main' into dynamic_model_idf05d0e4refactor: optimize safety and format📊 Changes
6 files changed (+353 additions, -186 deletions)
View changed files
📝
.env.example(+4 -1)📝
app/clients/base_client.py(+74 -22)📝
app/clients/claude_client.py(+51 -27)📝
app/clients/deepseek_client.py(+50 -27)📝
app/deepclaude/deepclaude.py(+104 -65)📝
app/main.py(+70 -44)📄 Description
主要更改
Claude侧模型支持使用客户端请求体中定义的model #23
更改说明
1.
main.py读取请求体中的
model字段, 如果为空则默认赋值为claude-3-5-sonnet. 判断环境变量ENV_CLAUDE_MODEL是否为空字符串, 若是, 则使用请求体中的model作为claude model进行请求.优先级:
2.
.env.example增加
CLAUDE_MODEL变量说明.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.