AurelioAguirre commited on
Commit
8cf0a67
·
1 Parent(s): 4f937d8

debugging chunks v4

Browse files
Files changed (1) hide show
  1. main/routes.py +1 -1
main/routes.py CHANGED
@@ -76,7 +76,7 @@ async def create_chat_completion(request: ChatCompletionRequest):
76
  ):
77
  # Parse the SSE format from LLM Server
78
  if chunk.startswith('data: '):
79
- chunk = chunk[6:].strip() # Remove "data: " and trailing \n\n
80
  chunk = chunk + " "
81
  logger.debug(f"Sending chunk: {chunk}...")
82
 
 
76
  ):
77
  # Parse the SSE format from LLM Server
78
  if chunk.startswith('data: '):
79
+ chunk = chunk[6:].replace("\n\n", "") # Remove "data: " and trailing \n\n
80
  chunk = chunk + " "
81
  logger.debug(f"Sending chunk: {chunk}...")
82