Update main.py
Browse files
main.py
CHANGED
@@ -197,7 +197,5 @@ async def chat_completions(request: ChatRequest):
|
|
197 |
async for chunk in async_generator:
|
198 |
response_content += chunk if isinstance(chunk, str) else chunk.content
|
199 |
|
200 |
-
return {
|
201 |
-
"content": response_content # Updated return
|
202 |
-
}
|
203 |
|
|
|
197 |
async for chunk in async_generator:
|
198 |
response_content += chunk if isinstance(chunk, str) else chunk.content
|
199 |
|
200 |
+
return {"content": response_content.strip()} # Updated return
|
|
|
|
|
201 |
|