forked from phoenix/litellm-mirror
refactor(proxy_server.py): print statement showing how to add debug for logs
This commit is contained in:
parent
6c4816e214
commit
4e1885734a
8 changed files with 76 additions and 207 deletions
|
@ -255,7 +255,7 @@ def completion(
|
|||
|
||||
## Some servers might return streaming responses even though stream was not set to true. (e.g. Baseten)
|
||||
is_streamed = False
|
||||
if response.__dict__['headers']["Content-Type"] == "text/event-stream":
|
||||
if response.__dict__['headers'].get("Content-Type", "") == "text/event-stream":
|
||||
is_streamed = True
|
||||
|
||||
# iterate over the complete streamed response, and return the final answer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue