This provider does not support fetching the model list Codex
Quick fix
Make models entries compatible with slug and id so they do not affect valid data field parsing.
Symptom
Section titled “Symptom”提示"该供应商不支持获取模型列表"(fetchModelsNotSupported)。降级回 v3.20.3 后,同一供应商可以正常获取模型列表。The message says "This provider does not support fetching the model list" (`fetchModelsNotSupported`). After downgrading to v3.20.3, the same provider can fetch the model list normally.
cc-switch v3.20.4 added top-level `models` field parsing for 智谱 API compatibility, requiring `slug` in its entries. When an OpenAI-compatible provider returns both valid `data` and `models` fields without `slug`, deserialization of the whole response fails and the frontend maps it to `fetchModelsNotSupported`.
v3.20.3 and earlier parse only `data` and ignore unknown fields, so they are unaffected. The issue's proposed fix is not confirmed as released in the supplied material.
Change `ZhipuModelEntry` parsing to support both `slug` and `id`; prefer `slug` when reading, and fall back to `id` when it is absent.
Alternatively, parse the response as `serde_json::Value`, then extract `data` and `models` as needed to prevent a non-智谱 `models` field from causing overall parsing failure.
Before a fix is released, downgrade to v3.20.3; this version can fetch the model list normally with the same provider.
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”This page is distilled from 1 real issues
(No FAQ yet)
Related problems
Section titled “Related problems”This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.