TwKit
正在载入
TwKit

接Claude API的,升级Python SDK前先查请求里的temperature。 10月21日发布的Python SDK 2.0.0默认使用API版… · @chu_zheng74230 · TwKit

@chu_zheng74230

接Claude API的,升级Python SDK前先查请求里的temperature。 10月21日发布的Python SDK 2.0.0默认使用API版本2026-10-21。这一版传temperature、top_p或top_k会报400,显式填默认值也不行。 旧代码若靠temperature=0压低随机性,删参数并非等价迁移:新版使用默认采样,没有替代设置。先用原来的测试样本复核输出,再上线。 10月22日核查,来源:https://platform.claude.com/docs/en/api/migration-2026-10-21

曝光 31 · 评论 1 · 点赞 1 · 书签 0

查看原帖