Skip to content

AI_APICallError: The messages parameter is illegal. Please check the documentation. - Zhipu AI GLM-4.5 #2557

@jgwhite0111

Description

@jgwhite0111

Zhipu AI GLM-4.5 regularly hangs mid edit and waits for a response after the message "AI_APICallError: The messages parameter is illegal. Please check the documentation."

Edit: I don't think it is mid-edit. It seems to happen after session compaction. And it seems to then start its memory again from the last session.

Only settings that are none default are z.ai's recommended setup for 'Coding Plan' on opencode. In ~/.config/opencode/opencode.json I have:

{
    "$schema": "https://opencode.ai/config.json",
    "provider": {
        "zhipuai": {
            "api": "https://api.z.ai/api/coding/paas/v4"
        }
    }
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions