mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
test(test_custom_callback_input.py): assert async success called only once during vertex ai streaming
This commit is contained in:
parent
0209588681
commit
e48fff47dd
2 changed files with 78 additions and 0 deletions
|
@ -1000,12 +1000,15 @@ async def async_streaming(
|
|||
if stream:
|
||||
response = TextStreamer(completion_response)
|
||||
|
||||
logging_obj.post_call(input=prompt, api_key=None, original_response=response)
|
||||
|
||||
streamwrapper = CustomStreamWrapper(
|
||||
completion_stream=response,
|
||||
model=model,
|
||||
custom_llm_provider="vertex_ai",
|
||||
logging_obj=logging_obj,
|
||||
)
|
||||
|
||||
return streamwrapper
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue