mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-11 22:51:28 +00:00
test(test_proxy_custom_logger.py): fix format test
This commit is contained in:
parent
f3a6225f61
commit
39d8645596
1 changed files with 1 additions and 1 deletions
|
|
@ -274,7 +274,7 @@ def test_chat_completion_stream(client):
|
|||
print("\n\n decode_data", data)
|
||||
|
||||
# Access the content of choices[0]['message']['content']
|
||||
content = data["choices"][0]["delta"]["content"] or ""
|
||||
content = data["choices"][0]["delta"].get("content", None) or ""
|
||||
|
||||
# Process the content as needed
|
||||
print("Content:", content)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue