Skip to content

[Bug]: GUI 模型切换时错误组合 provider 前缀 #51334

@filedwu

Description

@filedwu

Bug type

Behavior bug (incorrect output/state without crash)

Summary

环境信息
OpenClaw 版本: 2026.3.13 (61d171a)
操作系统: macOS Darwin 22.6.0
安装方式: npm (nvm)
问题描述
在 OpenClaw GUI 中切换模型时,系统错误地将新的 model ID 与之前的 provider 前缀组合,导致 model not allowed 错误。

Steps to reproduce

复现步骤
当前使用模型:ollama/llama3.2:latest
在 GUI 中切换到 kimi-k2.5
系统实际请求的是:ollama/kimi-k2.5 ❌
正确应该是:moonshot/kimi-k2.5 ✅

Expected behavior

预期行为
切换模型时应该使用正确的完整 model ID,即 provider/model-id 格式。

Actual behavior

实际行为
GUI 保留了之前的 provider 前缀(ollama/),只替换了 model ID 部分,导致组合错误。

OpenClaw version

2026.3.13 (61d171a)

Operating system

MacOs

Install method

npm glabal

Model

ollama/llama3.2:latest

Provider / routing chain

opencalw-gateway -gui-switch model

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbug:behaviorIncorrect behavior without a crash

    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