docs: update /api/score example to use gpt-5.4 and text-embedding-3-small

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-06-23 15:11:34 +08:00
parent f8e308b7dc
commit 2ad2c1ea9d
2 changed files with 6 additions and 2 deletions

View File

@@ -90,6 +90,10 @@ def score_sample(
- `factual_correctness` — 回答与参考答案的事实准确性(需 ground_truth
- `semantic_similarity` — 回答与参考答案的语义相似度(需 ground_truth
**推荐模型配置**
- `judge_model`: `gpt-5.4`
- `embedding_model`: `text-embedding-3-small`
**鉴权**:若 `.env` 中配置了 `SCORE_API_TOKEN`,需在请求头携带
`Authorization: Bearer <token>`;留空则无需鉴权(适合内网部署)。
"""