ollama/middleware
Bruce MacDonald 6e65d95ef5
server: add cached eval metric to response
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.
2026-06-25 16:21:08 -07:00
..
anthropic.go server: add cached eval metric to response 2026-06-25 16:21:08 -07:00
anthropic_test.go server: add cached eval metric to response 2026-06-25 16:21:08 -07:00
openai.go
openai_encoding_format_test.go
openai_test.go
test_home_test.go