两类请求分开用
两类请求分开用
curl -s http://127.0.0.1:8000/v1/models | head # 业务查询
curl -s -o /dev/null -w '%{http_code}' http://127.0.0.1:8000/health # 探活探针端点通常不鉴权、不触发推理:放进负载均衡的存活检查里,开销可控。
/v1/models 返回可用模型;健康检查用专门的活探针端点(如 vLLM 的 /health):前者走业务与鉴权流程,不适合做高频探活。
curl -s http://127.0.0.1:8000/v1/models | head # 业务查询
curl -s -o /dev/null -w '%{http_code}' http://127.0.0.1:8000/health # 探活