From 2e3ce6eab39f05cdc9a5b5d73c2d72d70b3e2b4e Mon Sep 17 00:00:00 2001 From: Jeffrey Morgan Date: Fri, 6 Feb 2026 15:33:18 -0800 Subject: [PATCH] anthropic: do not count image tokens for now (#14127) --- anthropic/anthropic.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/anthropic/anthropic.go b/anthropic/anthropic.go index 82bfb291e..94d435932 100755 --- a/anthropic/anthropic.go +++ b/anthropic/anthropic.go @@ -897,11 +897,5 @@ func countContentBlock(block any) int { } } - if source, ok := blockMap["source"].(map[string]any); ok { - if data, ok := source["data"].(string); ok { - total += len(data) - } - } - return total }