# What does this PR do?


## Test Plan
This commit is contained in:
Eric Huang 2025-10-08 13:38:52 -07:00
parent 96886afaca
commit 001bf15bf8
12 changed files with 69 additions and 1 deletions

View file

@ -299,6 +299,7 @@ class LiteLLMOpenAIMixin(
top_logprobs: int | None = None,
top_p: float | None = None,
user: str | None = None,
**kwargs: Any,
) -> OpenAIChatCompletion | AsyncIterator[OpenAIChatCompletionChunk]:
# Add usage tracking for streaming when telemetry is active
from llama_stack.providers.utils.telemetry.tracing import get_current_span
@ -335,6 +336,7 @@ class LiteLLMOpenAIMixin(
user=user,
api_key=self.get_api_key(),
api_base=self.api_base,
**kwargs,
)
return await litellm.acompletion(**params)