Skip to content

[Bug]: Model switch from UI generates wrong prefix (zai/deepseek-chat instead of deepseek/deepseek-chat) #53031

@lushengyin

Description

@lushengyin

Bug type

Regression (worked before, now fails)

Summary

When selecting the DeepSeek model from the dropdown menu in the web UI, the generated command has an incorrect prefix.

Steps to reproduce

  1. Configure multiple model providers (zai and deepseek)
  2. Select DeepSeek from the model dropdown in the UI
  3. Switch fails with error

Expected behavior

Generated command: zai/deepseek-chat
Error message: Failed to set model: GatewayRequestError: model not allowed: zai/deepseek-chat

Actual behavior

Config

  • OpenClaw version: 2026.3.13
"models": {
  "zai/glm-4.7": { "alias": "GLM" },
  "zai/glm-5": { "alias": "GLM-5" },
  "deepseek/deepseek-chat": { "alias": "DeepSeek" }
}

### OpenClaw version

2026.3.13

### Operating system

macos 15.7

### Install method

npm

### Model

deepseek

### Provider / routing chain

openclaw----glm----glm-5

### Additional provider/model setup details

"models": {
  "zai/glm-4.7": { "alias": "GLM" },
  "zai/glm-5": { "alias": "GLM-5" },
  "deepseek/deepseek-chat": { "alias": "DeepSeek" }
}

### Logs, screenshots, and evidence

```shell
## Config
- OpenClaw version: 2026.3.13

"models": {
  "zai/glm-4.7": { "alias": "GLM" },
  "zai/glm-5": { "alias": "GLM-5" },
  "deepseek/deepseek-chat": { "alias": "DeepSeek" }
}

Impact and severity

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingregressionBehavior that previously worked and now fails

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions