ollama/openai
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
..
openai.go server: add cached eval metric to response 2026-06-25 16:21:08 -07:00
openai_encoding_format_test.go embedding tests: added check against exact base64 string (#12790) 2025-10-28 10:37:20 -07:00
openai_test.go server: add cached eval metric to response 2026-06-25 16:21:08 -07:00
responses.go server: add cached eval metric to response 2026-06-25 16:21:08 -07:00
responses_test.go server: add cached eval metric to response 2026-06-25 16:21:08 -07:00