feat: add auto doc via utiopia
CI / Rust CI (push) Successful in 4m29s

This commit is contained in:
2026-04-10 15:45:41 +02:00
parent b3ad5249c0
commit a22560c337
10 changed files with 86 additions and 3 deletions
+4
View File
@@ -53,6 +53,10 @@ fn ollama_err(e: OllamaError) -> (axum::http::StatusCode, String) {
axum::http::StatusCode::NOT_FOUND,
format!("model '{m}' not found — run `ollama pull {m}`"),
),
OllamaError::MissingModel => (
axum::http::StatusCode::BAD_REQUEST,
"model is required and cannot be empty".to_string(),
),
OllamaError::MissingPrompt => (
axum::http::StatusCode::BAD_REQUEST,
"prompt is required".to_string(),