fix: request no reasoning for liveness and handle empty text
Build and deploy / build-deploy (push) Waiting to run
Build and deploy / build-deploy (push) Waiting to run
This commit is contained in:
+3
-2
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user