mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
(test) custom logger print success handler
This commit is contained in:
parent
126b4eb3cd
commit
5fdf797062
1 changed files with 4 additions and 1 deletions
|
@ -157,10 +157,13 @@ def test_async_custom_handler_stream():
|
|||
|
||||
response_in_success_handler = customHandler2.stream_collected_response
|
||||
response_in_success_handler = response_in_success_handler["choices"][0]["message"]["content"]
|
||||
print("\n\n")
|
||||
print("response_in_success_handler: ", response_in_success_handler)
|
||||
print("complete_streaming_response: ", complete_streaming_response)
|
||||
assert response_in_success_handler == complete_streaming_response
|
||||
except Exception as e:
|
||||
pytest.fail(f"Error occurred: {e}")
|
||||
# test_async_custom_handler_stream()
|
||||
test_async_custom_handler_stream()
|
||||
|
||||
def test_async_custom_handler():
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue