llama-stack-mirror/llama_stack/providers/utils/inference
Michael Dawson 80405da304 fix: ensure usage is requested if telemetry is enabled
Refs: https://github.com/llamastack/llama-stack/issues/3420

When telemetry is enabled the router uncondionally expects the
usage attribute to be availble and fails if it is not present.

Telemetry is not currently being requested by litellm_openai_mixin.py
for streaming requests which means that providers like vertexai
fail if telemetry is enabled and streaming is used.

This is part of the required fix. Other part is in litell, will
plan to submit PR for that soon.

Signed-off-by: Michael Dawson <midawson@redhat.com>
2025-09-26 15:50:11 -04:00
..
__init__.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
embedding_mixin.py fix: Make SentenceTransformer embedding operations non-blocking (#3335) 2025-09-04 13:58:41 -04:00
inference_store.py chore: simplify authorized sqlstore (#3496) 2025-09-19 16:13:56 -07:00
litellm_openai_mixin.py fix: ensure usage is requested if telemetry is enabled 2025-09-26 15:50:11 -04:00
model_registry.py fix: change ModelRegistryHelper to use ProviderModelEntry instead of hardcoded ModelType.llm (#3451) 2025-09-22 12:55:32 -04:00
openai_compat.py refactor(logging): rename llama_stack logger categories (#3065) 2025-08-21 17:31:04 -07:00
openai_mixin.py feat: include all models from provider's /v1/models (#3471) 2025-09-18 05:17:11 -04:00
prompt_adapter.py refactor(logging): rename llama_stack logger categories (#3065) 2025-08-21 17:31:04 -07:00