mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-09 13:14:39 +00:00
test
# What does this PR do? ## Test Plan
This commit is contained in:
parent
96886afaca
commit
001bf15bf8
12 changed files with 69 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue