Spaces:
Running
Running
Commit History
-
Render the answer as Markdown, bound API timeouts, fix a false notice
Devdan Schretlen +1: Claude Opus 5 (1M context)Three defects surfaced by a pre-purchase readiness audit. None blocked deployment; all are cheap and user-visible. 1. The answer panel html.escape()d the model's output into a pre-wrap block, so Markdown showed as literal characters. 19 of the 24 recorded answers contain '#', '##' or '**' -- one opens "# Bachelor of Arts: Degree Requirements Comparison". The answer output is now a gr.Markdown component and the renderer emits Markdown, which Gradio renders and sanitises natively: no new dependency and no hand-rolled converter. Source links escape square brackets, since calendar titles carry the edition that way ("Academic Standing [2026/27]"). 2. No hosted client passed an explicit timeout, so the SDK defaults applied: 600 s read for Anthropic and OpenAI, 300 s for Cohere. With concurrency_limit=1 a single stalled call holds the demo's only slot for ten minutes. Real calls take 1-5 s, so config.API_TIMEOUT (UBCAL_API_TIMEOUT, default 60 s) now applies to …9db5d1e