This commit is contained in:
2025-04-08 10:42:07 +02:00
parent 22d646e8ae
commit 91d22f25fe
2 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ async def http_handler(request):
import json
try:
async for result in server_manager.forward_to_websocket(request_id, data, path=request.path):
await resp.write(json.dumps(result).encode() + b'\n')
await resp.write(json.dumps(result).encode())
except NoServerFoundException:
await resp.write(json.dumps(dict(error="No server with that model found.",available=server_manager.get_models())).encode() + b'\n')
await resp.write_eof()