Skip to content

Conversation

@Alfonsxh
Copy link
Contributor

@Alfonsxh Alfonsxh commented Oct 29, 2025

Summary

  • 修复了模型测试时某些厂商默认开启思考功能导致的延迟问题
  • 为没有显式设置 thinking 参数的模型自动添加禁用配置
  • 调整了导入语句顺序,优化代码结构

Changes

  • 添加逻辑判断,为模型 extra_args 自动设置 thinking 为禁用状态
  • 修复条件判断,确保 extra_args 为空时也能正确处理
  • 优化了导入语句的顺序

Test plan

  • 测试具有 extra_args 的模型
  • 测试没有 extra_args 的模型
  • 验证测试延迟得到改善

🤖 Generated with Claude Code

Alfonsxh and others added 2 commits October 29, 2025 09:41
- 调整导入语句顺序
- 为没有显式设置 thinking 参数的模型添加禁用配置
- 避免某些模型厂商默认开启思考功能导致的测试延迟

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
修复条件判断逻辑,当 extra_args 为空字典时也会添加思考功能禁用配置

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@RockChinQ RockChinQ changed the title fix: 禁用模型默认思考功能以减少测试延迟 fix: disabling potential thinking param for model testing Oct 29, 2025
@RockChinQ
Copy link
Member

具体哪些模型厂适用这个参数?

@codecov
Copy link

codecov bot commented Oct 29, 2025

Codecov Report

❌ Patch coverage is 25.00000% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
pkg/api/http/service/model.py 25.00% 3 Missing ⚠️

📢 Thoughts on this report? Let us know!

@Alfonsxh
Copy link
Contributor Author

具体哪些模型厂适用这个参数?

目前测试的是智谱

@RockChinQ RockChinQ self-assigned this Nov 2, 2025
@RockChinQ RockChinQ merged commit f06e3d3 into langbot-app:master Nov 5, 2025
3 checks passed
@RockChinQ
Copy link
Member

感谢贡献!

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