mirror of
https://github.com/ollama/ollama.git
synced 2026-04-18 00:54:05 +02:00
anthropic: do not count image tokens for now (#14127)
This commit is contained in:
@@ -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
|
return total
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user