Skip to content

Commit 53b74a9

Browse files
committed
refactor: 更新注释以更清晰地说明无工具请求的处理逻辑
1 parent a4d389f commit 53b74a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/routes/messages/handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export async function handleCompletion(c: Context) {
5858
const originalModel = anthropicPayload.model
5959
logger.debug("Anthropic request payload:", JSON.stringify(anthropicPayload))
6060

61-
// fix claude code 2.0.28 warmup request consume premium request, forcing small model if no tools are used
61+
// Redirect tool-less requests (warmup, topic detection, etc.) to a cheaper model
6262
if (!anthropicPayload.tools || anthropicPayload.tools.length === 0) {
6363
anthropicPayload.model = getSmallModel()
6464
}

0 commit comments

Comments
 (0)