mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 03:29:23 +08:00
parse_json_response extracted only the first fenced block, so a reply that shows a code snippet (for example a ```python block) before the fenced JSON payload lost the payload: it returned a list literal from the snippet or the fallback. Prefer the first fenced block that holds a JSON object or array, and keep the first block otherwise.