use axum::Json;
use axum::http::StatusCode;
use axum::response::IntoResponse;
use serde::Deserialize;
use serde_json::{Value, json};
#[derive(Deserialize)]
pub struct GenerateBody {
pub prompt: String,
#[serde(default)]
pub host: Option<String>,
#[serde(default)]
pub examples: Option<Vec<String>>,
#[serde(default)]
pub current_card: Option<Value>,
}
pub async fn post_generate(Json(_body): Json<GenerateBody>) -> impl IntoResponse {
(
StatusCode::NOT_IMPLEMENTED,
Json(json!({
"error": "POST /api/generate is not implemented in v0.1.0; \
use POST /api/chat with use_tools=true instead"
})),
)
.into_response()
}