extract_questions_with_llm raises ValueError("LLM returned empty or None
response") when the completion is None, but its except handler then sliced
result_text[:500] — None[:500] — raising TypeError and masking the intended
error. A None completion is a realistic provider outcome (content filter,
transient empty response) in the exam-mimic question pipeline.
Build the preview from (result_text or "") so the handler reports the clean
ValueError.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- The Add model panel now asks for a model ID (prefilled from provider
defaults and discovered models) and keeps Continue disabled until it is
filled, so an unusable row can no longer reach the draft.
- The model editor marks a blank ID as required, explains it inline, and
blocks "Set as default" until it is fixed.
- Apply now names the first incomplete model and opens the page and row
that can repair it, instead of failing with a message pointing nowhere.
- Add/selection state lives in the URL, so refreshing no longer swaps the
add panel for the list (or vice versa).
- Backend guidance points at the current page names (Language models /
Embedding models / Search) instead of the removed Catalog page.
- Regression tests cover the add flow, URL state, editor validation, and
the Apply preflight; new i18n keys for en/zh/de/pl/fr/uk.
Co-Authored-By: Claude <noreply@anthropic.com>