2026-07-25 15:07:19 +07:00
|
|
|
//! Health check endpoint.
|
|
|
|
|
|
|
|
|
|
use axum::Json;
|
|
|
|
|
|
|
|
|
|
use crate::config::MODEL_ID;
|
|
|
|
|
use crate::domain::entity::HealthResponse;
|
|
|
|
|
|
|
|
|
|
pub async fn health_check() -> Json<HealthResponse> {
|
|
|
|
|
Json(HealthResponse {
|
|
|
|
|
status: "ok".into(),
|
2026-08-03 08:58:13 +07:00
|
|
|
// Report the exact model id served by /v1/models (no extra suffix).
|
|
|
|
|
model: MODEL_ID.into(),
|
2026-07-25 15:07:19 +07:00
|
|
|
})
|
|
|
|
|
}
|