mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-24 12:44:18 +08:00
525346188b
Fixes #5025. The rectifier's media fallback missed Volcano Coding Plan's GLM 5.2 on both paths: - Preventive: known_text_only_model had glm-5.1 but not glm-5.2, so image blocks were forwarded verbatim. Added glm-5.2 as an exact tail match (not a prefix, to avoid stripping images from a future glm-5.2v multimodal variant following Zhipu's 4v/5v naming). - Reactive: the upstream error "Model only support text input" never mentions image/media, so the mentions_image gate rejected it before hints ran; and the existing "only supports text" hint misses the gateway's missing third-person "s". Added a self-evident phrase list ("only support text" / "only supports text") that asserts a modality rejection on its own and bypasses the image-mention gate. Includes regression tests using the verbatim #5025 error body and the glm-5.2[1M] mapped-model form, plus a glm-5.2v negative assertion.