Update app/main.py
Browse files- app/main.py +1 -0
app/main.py
CHANGED
@@ -1772,6 +1772,7 @@ async def chat_completions(request: OpenAIRequest, api_key: str = Depends(get_ap
|
|
1772 |
extra_body=openai_extra_body # Pass safety settings here
|
1773 |
)
|
1774 |
async for chunk in stream:
|
|
|
1775 |
yield f"data: {chunk.model_dump_json()}\n\n"
|
1776 |
yield "data: [DONE]\n\n"
|
1777 |
except Exception as stream_error:
|
|
|
1772 |
extra_body=openai_extra_body # Pass safety settings here
|
1773 |
)
|
1774 |
async for chunk in stream:
|
1775 |
+
print(chunk.model_dump_json())
|
1776 |
yield f"data: {chunk.model_dump_json()}\n\n"
|
1777 |
yield "data: [DONE]\n\n"
|
1778 |
except Exception as stream_error:
|