Skip to content

MiniMax-M2.1 fails with "cannot unmarshal string" #10760

Closed

Description

@waterworthd-cim

Description

I'm seeing the error below using Huggingface MiniMax-M2.1

It seems to occur on every conversions, i.e. I ask it to analyse a codebase for refactor and it calls a few tools (i.e. ls -la ...) then displays the error and waits for more input

Bad Request: body unmarshal json: cannot unmarshal string into Go struct field ChatCompletionRequestAlias.messages of type []openai.ChatMessagePart

Plugins

No response

OpenCode version

1.1.36

Steps to reproduce

/models Huggingface MiniMax-M2.1
"analyse this codebase"

Screenshot and/or share link

No response

Operating System

macos 26.2

Terminal

zsh

Activity

  1. github-actions commented on Jan 27, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. aditya-oss-prog commented on Feb 18, 2026

    @aditya-oss-prog

    I am getting same error

    Bad Request: body unmarshal json: cannot unmarshal string into Go struct field ChatCompletionRequestAlias.messages of type []openai.ChatMessagePart with Minimax M2.5 and Qwen/Qwen3.5-397B-A17B

  3. github-actions commented on Apr 20, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions