[BugFix] fix parameter is 0 (#3592)

* Update engine_client.py

* fix

* Update common_engine.py
This commit is contained in:
ltd0924
2025-08-28 09:52:36 +08:00
committed by GitHub
parent 479c8b85d3
commit 3d92fb09f7
3 changed files with 28 additions and 25 deletions
-3
View File
@@ -380,9 +380,6 @@ def test_max_tokens_min():
payload = build_request_payload(TEMPLATE, data)
resp = send_request(URL, payload).json()
assert resp.get("detail").get("object") == "error", "max_tokens未0时API未拦截住"
assert "reasoning_max_tokens must be between max_tokens and 1" in resp.get("detail").get(
"message", ""
), "未返回预期的 max_tokens 达到异常值0 的 错误信息"
def test_max_tokens_non_integer():