mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
test(utils.py): adding more logging for streaming test
This commit is contained in:
parent
1032b49f23
commit
39e784fb8b
1 changed files with 3 additions and 1 deletions
|
@ -4629,9 +4629,11 @@ class CustomStreamWrapper:
|
|||
chunk = self.completion_stream
|
||||
else:
|
||||
chunk = next(self.completion_stream)
|
||||
|
||||
|
||||
print_verbose(f"chunk in __next__: {chunk}")
|
||||
if chunk is not None:
|
||||
response = self.chunk_creator(chunk=chunk)
|
||||
print_verbose(f"response in __next__: {response}")
|
||||
if response is not None:
|
||||
return response
|
||||
except StopIteration:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue