mirror of
https://github.com/ErlichLiu/DeepClaude.git
synced 2026-04-25 05:05:57 +03:00
[PR #12] [MERGED] 支持向Claude设置temperature等模型参数 #99
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#99
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/12
Author: @GowayLee
Created: 2/6/2025
Status: ✅ Merged
Merged: 2/6/2025
Merged by: @ErlichLiu
Base:
main← Head:dev📝 Commits (3)
b686141feat: 新增DEEPSEEK_PROVIDER用于区分不同提供商c77de60feat: 新增支持temperature, top_p, presence_penalty, frequency_penalty参数83910b1docs: 修改.env.example📊 Changes
5 files changed (+109 additions, -47 deletions)
View changed files
📝
.env.example(+7 -0)📝
app/clients/claude_client.py(+30 -12)📝
app/clients/deepseek_client.py(+2 -1)📝
app/deepclaude/deepclaude.py(+22 -10)📝
app/main.py(+48 -24)📄 Description
主要更改
.env.example更改说明
1.
main.py增加获取检查上述参数的逻辑, 并将请求参数获取&检查的逻辑分离为独立方法. 使用元组将这些模型参数传入
deepclaude2.
claude_client.py将对应参数添加到请求体
data3.
deepclaude.py改进日志内容
4.
.env.example添加
IS_ORIGIN_REASONING环境变量以及说明🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.