PHYBench

创建评估任务

上传模型答案文件并创建新的评估任务

POST
/tasks

Query Parameters

max_concurrent_tasks?Max Concurrent Tasks
Default8
simplify_time_limit?Simplify Time Limit
Default30
equals_time_limit?Equals Time Limit
Default15
fileFile

包含模型答案的JSON文件 (最大10MB)

Formatbinary

Response Body

curl -X POST "https://evaluate.phybench.cn/tasks?max_concurrent_tasks=8&simplify_time_limit=30&equals_time_limit=15" \  -F file="string"
{
  "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.example",
  "created_at": "2024-01-01T12:00:00Z",
  "status": "PENDING",
  "task_id": "task_12345abcde"
}
{
  "task_id": "task_12345abcde",
  "access_token": "eyJ0eXAiOiJKV1QiLCJhbGci...",
  "status": "PENDING",
  "created_at": "2024-01-01T12:00:00Z"
}
{
  "details": {
    "expected": "application/json",
    "field": "file",
    "received": "text/plain"
  },
  "error": "validation_error",
  "message": "Invalid file format"
}
{
  "details": {
    "expected": "application/json",
    "field": "file",
    "received": "text/plain"
  },
  "error": "validation_error",
  "message": "Invalid file format"
}
{
  "details": {
    "expected": "application/json",
    "field": "file",
    "received": "text/plain"
  },
  "error": "validation_error",
  "message": "Invalid file format"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}
{
  "details": {
    "expected": "application/json",
    "field": "file",
    "received": "text/plain"
  },
  "error": "validation_error",
  "message": "Invalid file format"
}