mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
(Bug fix) - Using include_usage
for /completions requests + unit testing (#8484)
* pass stream options (#8419) * test_completion_streaming_usage_metrics * test_text_completion_include_usage --------- Co-authored-by: Kaushik Deka <55996465+Kaushikdkrikhanu@users.noreply.github.com>
This commit is contained in:
parent
57e5ec07cc
commit
caa848649c
3 changed files with 66 additions and 0 deletions
|
@ -3947,6 +3947,7 @@ async def atext_completion(
|
|||
),
|
||||
model=model,
|
||||
custom_llm_provider=custom_llm_provider,
|
||||
stream_options=kwargs.get('stream_options'),
|
||||
)
|
||||
else:
|
||||
## OpenAI / Azure Text Completion Returns here
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue