[XPU][CI] Change XPU CI Base Value (#5318)

* Add '小度' keyword to assertion in run_w4a8.py

* Add keywords to assertion in run_ep_online.py

* Add keywords to assertion in run_w4a8.py

* Update run_45T.py

* Update run_ep_online.py

* Refactor assertion for response content keywords

* Update run_w4a8.py

* Update run_w4a8.py
This commit is contained in:
Jiaxin Sui
2025-12-01 21:02:09 +08:00
committed by GitHub
parent 3149aed750
commit b0113cb0fc
3 changed files with 10 additions and 3 deletions

View File

@@ -36,7 +36,9 @@ def test_45t():
)
print(response.choices[0].message.content)
# print(base_response)
assert any(keyword in response.choices[0].message.content for keyword in ["人工智能", "文心一言"])
assert any(
keyword in response.choices[0].message.content for keyword in ["人工智能", "文心一言", "百度", "智能助手"]
)
if __name__ == "__main__":

View File

@@ -35,7 +35,9 @@ def test_ep():
print(response.choices[0].message.content)
# print(base_response)
assert any(keyword in response.choices[0].message.content for keyword in ["人工智能", "文心一言"])
assert any(
keyword in response.choices[0].message.content for keyword in ["人工智能", "文心一言", "百度", "智能助手"]
)
if __name__ == "__main__":

View File

@@ -36,7 +36,10 @@ def test_w4a8():
)
print(response.choices[0].message.content)
# print(base_response)
assert any(keyword in response.choices[0].message.content for keyword in ["人工智能", "文心一言", "小度"])
assert any(
keyword in response.choices[0].message.content
for keyword in ["人工智能", "文心一言", "小度", "百度", "智能助手"]
)
if __name__ == "__main__":