Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Claude侧支持客户端请求体中的model #27

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

GowayLee
Copy link
Contributor

@GowayLee GowayLee commented Feb 8, 2025

主要更改

Claude侧模型支持使用客户端请求体中定义的model #23

更改说明

1. main.py

读取请求体中的model字段, 如果为空则默认赋值为claude-3-5-sonnet. 判断环境变量ENV_CLAUDE_MODEL是否为空字符串, 若是, 则使用请求体中的model作为claude model进行请求.

优先级:

环境变量 -> 请求体model字段 -> 默认值"claude-3-5-sonnet"

2. .env.example

增加CLAUDE_MODEL变量说明.

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.

1 participant