mirror of
https://github.com/ollama/ollama.git
synced 2026-09-01 08:51:37 +00:00
Added cached prompt token counts to Ollama responses and compatibility usage fields. This carries local `llama-server` `cache_n` and MLX cache hits through `/api/generate`, `/api/chat`, OpenAI-compatible endpoints, and Anthropic-compatible `/v1/messages`. Cloud responses are passed through as-is, so cache counts will show up there once Cloud starts returning them. |
||
|---|---|---|
| .. | ||
| anthropic.go | ||
| anthropic_test.go | ||
| openai.go | ||
| openai_encoding_format_test.go | ||
| openai_test.go | ||
| test_home_test.go | ||