anthropic: do not count image tokens for now (#14127)

This commit is contained in:
Jeffrey Morgan
2026-02-06 15:33:18 -08:00
committed by GitHub
parent 9e2003f88a
commit 2e3ce6eab3

View File

@@ -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
}