mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 00:17:25 +08:00
[BugFix] fix parameter is 0 (#3592)
* Update engine_client.py * fix * Update common_engine.py
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user