[Frontend] Score entrypoint support data_1 & data_2 and queries & documents as inputs (#32577)

Signed-off-by: wang.yuqi <yuqi.wang@daocloud.io>
This commit is contained in:
wang.yuqi
2026-01-19 22:07:46 +08:00
committed by GitHub
parent 758df5afe7
commit c88860d759
17 changed files with 277 additions and 137 deletions

View File

@@ -251,8 +251,8 @@ async def test_score(server: RemoteOpenAIServer, model_name: str):
server.url_for("score"),
json={
"model": model_name,
"text_1": "ping",
"text_2": "pong",
"queries": "ping",
"documents": "pong",
},
)
assert response.json()["error"]["type"] == "BadRequestError"