Estimate tokens for tool_use, tool_result, thinking, system, and tools blocks instead of text only, so count_tokens no longer returns 0 for structured content and breaks Claude Code auto-compaction (#2337). Co-authored-by: Cursor <cursoragent@cursor.com> |
||
|---|---|---|
| .. | ||
| api/chat | ||
| audio | ||
| chat/completions | ||
| embeddings | ||
| images/generations | ||
| messages | ||
| models | ||
| responses | ||
| search | ||
| web/fetch | ||
| route.js | ||