Skip to content

[Bug]: Xiaomi Mimo provider: 400 “Param Incorrect” – reasoning_content required in thinking mode #3347

@joaohildebrandt

Description

@joaohildebrandt

Bug Description

Hi, I’m running into an issue when using the Xiaomi provider.

Basically when send something to chat I get this error

ERROR: POST https://token-plan-ams.xiaomimimo.com/v1/chat/completions
Caused by:
    0: 400 Bad Request Reason: data:{"error":{"code":"400","message":"Param Incorrect","param":"The reasoning_content in the thinking mode must be passed back to the API.","type":""}}
    1: Invalid Status Code: 400

Steps to Reproduce

  1. Configure Xiaomi's provider and choose mimo-V2.5-pro model
  2. Send a chat completion request.
  3. The request fails with the 400 error above.

Expected Behavior

The chat/request should succeed

Actual Behavior

When sending a chat completion request via the Xiaomi provider, the API returns a 400 Bad Request with:

‎`{"error":{"code":"400","message":"Param Incorrect","param":"The reasoning_content in the thinking mode must be passed back to the API.","type":""}

Maybe read this documentation from Xiaomi could help:
https://platform.xiaomimimo.com/docs/en-US/usage-guide/passing-back-reasoning_content

Forge Version

2.12.14

Operating System & Version

macOS 26.4

AI Provider

Other

Model

mimo-v2.5-pro

Installation Method

curl -fsSL https://forgecode.dev/cli | sh

Configuration

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working.

    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