mirror of
https://github.com/browser-use/browser-use
synced 2026-05-06 17:52:15 +02:00
<!-- This is an auto-generated description by cubic. --> ## Summary by cubic Added token caching support for Claude models, including accurate tracking and cost calculation for cached, cache creation, and uncached tokens. - **New Features** - Added `cache` flag to messages and updated Anthropic message serialization to support Claude's token caching. - Updated token usage and cost tracking to handle cached tokens, cache creation tokens, and their costs. - Improved token usage logs to show detailed breakdowns for cached and uncached tokens. - Added tests for Anthropic cache serialization and cost calculation. <!-- End of auto-generated description by cubic. -->