mirror of
https://github.com/hoshikawa2/openclaw-oci.git
synced 2026-03-06 02:10:40 +00:00
adjustments
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user