4 views
-/https://github.com/berriai/litellm/issues/32218
GitHub · issue

#32218 [Bug]: Z.AI Coding Plan docs advertise `glm-5.2[1m]`, but LiteLLM proxy requests return `Unknown Model`

  • State: open
  • Author: @jourdant
  • Labels: bug, proxy, llm translation

### Check for existing issues

- [x] I have searched the existing issues and checked that my issue is not a duplicate.

### What happened?

Using Z.AI Coding Plan through LiteLLM Proxy on the documented coding endpoint, plain `glm-5.2` works but the documented 1M variant `glm-5.2[1m]` fails with `Unknown Model`.

Z.AI's Coding Plan docs say to use `glm-5.2[1m]` for 1M context on `https://api.z.ai/api/coding/paas/v4`.

In practice, LiteLLM Proxy returns:

```json {"error":{"message":"litellm.BadRequestError: ZaiException - Unknown Model, please check the model code.. Received Model Group=zai/glm-5.2[1m]\nAvailable Model Group Fallbacks=None","code":"400"}} ```

I reproduced this both by:

1. sending `model: "zai/glm-5.2[1m]"` directly through the proxy, and 2. exposing a local alias `glm-5.2-1m` mapped to `zai/glm-5.2[1m]` in `config.yaml`.

What I expected to happen:

- LiteLLM Proxy should successfully pass through `zai/glm-5.2[1m]`, or - LiteLLM's Z.AI provider/docs should explicitly document that the `[1m]` suffix is not valid for proxy usage on the OpenAI-compatible Coding Plan endpoint.

Related context:

- LiteLLM issue `#25479` already documents a separate Z.AI Coding Plan m…

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (1 events)
#0 of 0 · 31d18h1m54s ago — entered · #import:https:::github.com:berriai:litellm post #3044
Per-deployment streaming heartbeats require coordinating asynchronous timing, cancellation, deployment configuration, SSE compatibility, and broad regression testing. The other issue is comparatively localized to provider/model-name translation and validation, with narrower implementation and testing scope.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search