adjustments

This commit is contained in:
2026-02-13 00:05:55 -03:00
parent c94c244cc2
commit 8ea3b53613
2 changed files with 14 additions and 4 deletions

View File

@@ -269,7 +269,12 @@ async def chat_completions(request: Request):
if body.get("stream"): if body.get("stream"):
return StreamingResponse( return StreamingResponse(
fake_stream(text, body["model"]), fake_stream(text, body["model"]),
media_type="text/event-stream" media_type="text/event-stream",
headers={
"Cache-Control": "no-cache",
"Connection": "keep-alive",
"X-Accel-Buffering": "no"
}
) )
return build_openai_response(body["model"], text) return build_openai_response(body["model"], text)
@@ -309,7 +314,12 @@ async def responses_passthrough(request: Request):
if body.get("stream"): if body.get("stream"):
return StreamingResponse( return StreamingResponse(
fake_stream(text, body["model"]), fake_stream(text, body["model"]),
media_type="text/event-stream" media_type="text/event-stream",
headers={
"Cache-Control": "no-cache",
"Connection": "keep-alive",
"X-Accel-Buffering": "no"
}
) )
return build_openai_response(body["model"], text) return build_openai_response(body["model"], text)

View File

@@ -40,8 +40,8 @@
"ackReactionScope": "group-mentions" "ackReactionScope": "group-mentions"
}, },
"commands": { "commands": {
"native": "auto", "native": "off",
"nativeSkills": "auto" "nativeSkills": "off"
}, },
"gateway": { "gateway": {
"port": 18789, "port": 18789,