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 Add support for gemma4 (#15214) 2026-04-02 11:33:33 -07:00
openai_encoding_format_test.go embeddings: base64 encoding fix (#12715) 2025-10-22 11:27:44 -07:00
openai_test.go middleware: handle non-JSON error responses gracefully (#14828) 2026-03-13 14:50:49 -07:00
test_home_test.go anthropic: enable websearch (#14246) 2026-02-13 19:20:46 -08:00