Niansuh commited on
Commit
e209ccf
·
verified ·
1 Parent(s): 087538c

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -3
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