fix: request no reasoning for liveness and handle empty text
Build and deploy / build-deploy (push) Waiting to run

This commit is contained in:
2026-10-27 11:58:56 +00:00
parent 631b44666f
commit e8177c1270
4 changed files with 51 additions and 6 deletions
+3 -2
View File
@@ -81,9 +81,10 @@ class OmniMock:
if not beh.get("no_usage"):
resp["usage"] = beh.get("usage")
if not beh.get("omit_choices"):
resp["choices"] = [{"index": 0, "finish_reason": "stop",
resp["choices"] = [{"index": 0, "finish_reason": beh.get("finish_reason", "stop"),
"message": {"role": "assistant",
"content": beh.get("content", "4")}}]
"content": beh.get("content", "4"),
"reasoning_content": beh.get("reasoning_content")}}]
self._send_json(200, resp)
def do_GET(self):