Skip to content

fix: 支持字符串类型的 min_budget_tokens参数, Issue #27#28

Merged
kxn merged 1 commit into
kxn:masterfrom
frankdzh:bug-fix/minbudget-str-parse
Sep 10, 2025
Merged

fix: 支持字符串类型的 min_budget_tokens参数, Issue #27#28
kxn merged 1 commit into
kxn:masterfrom
frankdzh:bug-fix/minbudget-str-parse

Conversation

@frankdzh

@frankdzh frankdzh commented Sep 7, 2025

Copy link
Copy Markdown

添加对字符串类型min_budget_tokens参数的支持,当传入字符串时会尝试转换为整数。如果转换失败则返回错误,保持与现有数字类型参数相同的错误处理逻辑。
此bug如果不修复,会导致增加了类型为“内置类型”中的“思考模式匹配”,并且输入了“最小 Budget Tokens ”字段内容标记器后,服务器无法启动。

添加对字符串类型min_budget_tokens参数的支持,当传入字符串时会尝试转换为整数。如果转换失败则返回错误,保持与现有数字类型参数相同的错误处理逻辑。

@kxn kxn left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the first pull request ever!

@kxn
kxn merged commit 2d01330 into kxn:master Sep 10, 2025
5 checks passed
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