Skip to content

Commit 8bf9621

Browse files
authored
Update test_evil_cases.py
1 parent 770b0aa commit 8bf9621

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/ce/server/test_evil_cases.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ def test_top_p_exceed_1():
7979
}
8080
payload = build_request_payload(TEMPLATE, data)
8181
resp = send_request(URL, payload).json()
82-
assert resp.get("object") == "error", "top_p > 1 应触发校验异常"
83-
assert "top_p value can only be defined" in resp.get("message", ""), "未返回预期的 top_p 错误信息"
82+
assert resp.get("detail").get("object") == "error", "top_p > 1 应触发校验异常"
83+
assert "top_p value can only be defined" in resp.get("detail").get("message", ""), "未返回预期的 top_p 错误信息"
8484

8585

8686
def test_mixed_valid_invalid_fields():

0 commit comments

Comments
 (0)