3 Commits

Author SHA1 Message Date
Rudy Celekli
5c39ff5b46 fix(tools): raise ValueError, not TypeError, on a None LLM response
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>
2026-11-01 09:36:42 -05:00
Bingxi Zhao (Frank)
77f29cbcc7 fix lint 2026-04-23 19:29:16 +08:00
yinlixin
cef2e4001a fix(question-generator): support nested MinerU output 2026-04-06 12:59:29 +08:00