Skip to content

支持向Claude设置temperature等模型参数#12

Merged
ErlichLiu merged 3 commits intoErlichLiu:mainfrom
GowayLee:dev
Feb 6, 2025
Merged

支持向Claude设置temperature等模型参数#12
ErlichLiu merged 3 commits intoErlichLiu:mainfrom
GowayLee:dev

Conversation

@GowayLee
Copy link
Copy Markdown
Collaborator

@GowayLee GowayLee commented Feb 6, 2025

主要更改

  • 支持从客户端收集temperature, top_p, presence_penalty, frequency_penalty参数, 并传递到Claude侧模型的补全请求.
  • 改进日志内容
  • 修改.env.example

更改说明

1. main.py

增加获取检查上述参数的逻辑, 并将请求参数获取&检查的逻辑分离为独立方法. 使用元组将这些模型参数传入deepclaude

2. claude_client.py

将对应参数添加到请求体data

3. deepclaude.py

改进日志内容

4. .env.example

添加IS_ORIGIN_REASONING环境变量以及说明

@ErlichLiu ErlichLiu merged commit 78f2697 into ErlichLiu:main Feb 6, 2025
billsoft pushed a commit to billsoft/DeepClaude that referenced this pull request Feb 18, 2025
支持向Claude设置temperature等模型参数
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