Update API docs: document judge_language in all score endpoints

- POST /api/score: add judge_language section with default/usage

- POST /api/score/async: mention judge_language in docstring

- POST /api/score/session_async: add to description string + JSON example

- ScoreRequest / SessionScoreRequest: add judge_language to schema example

- request_summary snapshots: include judge_language for observability

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
wangwei
2026-07-01 20:21:04 +08:00
co-authored by Copilot
parent 24a8688a34
commit 3a82d8c487
6 changed files with 20 additions and 3 deletions
+2
View File
@@ -443,6 +443,7 @@ class ScoreRequest(BaseModel):
],
"judge_model": "gpt-5",
"embedding_model": "text-embedding-3-small",
"judge_language": "zh",
}
}
)
@@ -573,6 +574,7 @@ class SessionScoreRequest(ScoreRequest):
"metrics": ["answer_relevancy", "faithfulness"],
"judge_model": "gpt-5.5",
"embedding_model": "text-embedding-3-small",
"judge_language": "zh",
},
}
]