Add LLM summary

This commit is contained in:
Andras Schmelczer 2026-02-07 21:32:28 +00:00
parent f5e6894c0f
commit 9e71ed77df
3 changed files with 275 additions and 9 deletions

View file

@ -9,15 +9,7 @@ use tracing::warn;
use crate::state::AppState;
pub async fn proxy_to_pocketbase(state: Arc<AppState>, req: Request) -> impl IntoResponse {
let pb_url = match &state.pocketbase_url {
Some(url) => url.trim_end_matches('/'),
None => {
return Response::builder()
.status(StatusCode::SERVICE_UNAVAILABLE)
.body(Body::from("PocketBase not configured"))
.unwrap();
}
};
let pb_url = state.pocketbase_url.trim_end_matches('/');
let path = req.uri().path();
let target_path = path.strip_prefix("/pb").unwrap_or(path);