创建评测集兼容接口
curl --request POST \
--url http://localhost:8000/dev/apps/{app_name}/eval_sets/{eval_set_id} \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:8000/dev/apps/{app_name}/eval_sets/{eval_set_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:8000/dev/apps/{app_name}/eval_sets/{eval_set_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));null{
"detail": "<string>"
}{
"error": "CONTENT_LENGTH_REQUIRED"
}{
"error": "REQUEST_TOO_LARGE"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}兼容接口
创建评测集兼容接口
deprecated
使用路径 ID 创建空评测集,成功返回 JSON null
此接口由所核验的 SDK/ADK 版本提供,仅用于受信任的开发和调试。路径随安装的 ADK 版本变化,不应作为公共业务入口
POST
/
dev
/
apps
/
{app_name}
/
eval_sets
/
{eval_set_id}
创建评测集兼容接口
curl --request POST \
--url http://localhost:8000/dev/apps/{app_name}/eval_sets/{eval_set_id} \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:8000/dev/apps/{app_name}/eval_sets/{eval_set_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:8000/dev/apps/{app_name}/eval_sets/{eval_set_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));null{
"detail": "<string>"
}{
"error": "CONTENT_LENGTH_REQUIRED"
}{
"error": "REQUEST_TOO_LARGE"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}最后修改于 2026年9月19日