Skip to content

Agent 模型名 ANSI 转义码泄漏: mimo-v2.5-pro 报错 #16194

@ppdd123-star

Description

@ppdd123-star

Bug 描述

使用 MiMo Provider 配置 Agent 时, 模型名 mimo-v2.5-pro 在传递给 Claude Code 执行引擎时被 ANSI 转义码污染, 导致 API 返回 模型不存在的错误.

复现步骤

  1. 配置 Agent 执行模型为 mimo:mimo-v2.5-pro
  2. 运行任意 Agent 任务
  3. 报错

预期行为

正常调用 mimo-v2.5-pro 模型

实际行为

Claude Code returned an error result: There's an issue with the selected model (mimo-v2.5-pro[1m]).

模型名被附加了 ANSI 转义码 [1m

对比

  • mimo-v2.5 → 正常 ✅
  • mimo-v2.5-pro → 模型名变 mimo-v2.5-pro[1m, 报错 ❌

推测原因

-pro 后缀触发了某种终端加粗渲染(\x1b[1m), 转义符泄漏到模型名字符串中

环境

-Cherry Studio 版本: 1.9.1
-Provider: MiMo(OpenAI 兼容转义)
-模型: mimo/mimo-v2.5-pro

Metadata

Metadata

Assignees

No one assigned

    Labels

    ModelsCategorizes an issue or PR as relevant to SIG LLM

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions