mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 02:34:29 +00:00
test(utils.py): adding more logging for streaming test
This commit is contained in:
parent
4475f2bbdd
commit
05d720075b
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