Spaces:
Runtime error
Runtime error
Commit
·
266a3d3
1
Parent(s):
8cf0a67
debugging chunks v5
Browse files- main/routes.py +1 -1
main/routes.py
CHANGED
|
@@ -77,7 +77,7 @@ async def create_chat_completion(request: ChatCompletionRequest):
|
|
| 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 |
|
| 83 |
if chunk == '[DONE]':
|
|
|
|
| 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 |
|
| 83 |
if chunk == '[DONE]':
|