mirror of
https://github.com/ollama/ollama
synced 2026-04-23 08:45:14 +00:00
anthropic: do not count image tokens for now (#14127)
This commit is contained in:
parent
9e2003f88a
commit
2e3ce6eab3
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue