# MediAssist v14.4 — Stable (Router-powered) - Uses HF Router text-generation endpoint (default: GPT-OSS-120B) - Robust chat handler with non-JSON and 404 handling - RAG with unique IDs to prevent Chroma DuplicateIDError - OPD + Citations + PDF export - Diagnostics page for quick endpoint tests ## HF Space Setup 1. Create Space (SDK: Streamlit) and upload this ZIP. 2. Settings → Secrets: `HF_API_TOKEN` 3. Settings → Variables (optional): - `HF_CHAT_ENDPOINT` = https://router.huggingface.co/hf-inference/text-generation/openai/gpt-oss-120b 4. Sidebar → Seed / Refresh RAG Index (once) 5. Chat, generate OPD, and export PDF. Generated: 2025-12-06