mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-18 06:15:51 +00:00
feat: 完成一大波类型修复, 虽然 any 很多
This commit is contained in:
@@ -411,7 +411,7 @@ function roughTokenCountEstimationForBlock(
|
||||
return 2000
|
||||
}
|
||||
if (block.type === 'tool_result') {
|
||||
return roughTokenCountEstimationForContent(block.content)
|
||||
return roughTokenCountEstimationForContent(block.content as any)
|
||||
}
|
||||
if (block.type === 'tool_use') {
|
||||
// input is the JSON the model generated — arbitrarily large (bash
|
||||
|
||||
Reference in New Issue
Block a user