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

Open
opened 2026-02-16 18:07:55 -05:00 by yindo · 1 comment
Owner

Originally created by @waterworthd-cim on GitHub (Jan 26, 2026).

Originally assigned to: @rekram1-node on GitHub.

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

Originally created by @waterworthd-cim on GitHub (Jan 26, 2026). Originally assigned to: @rekram1-node on GitHub. ### 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
yindo added the bug label 2026-02-16 18:07:55 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 26, 2026):

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

  • #9733: Bug: TypeError in session prompt handling and workflow timeout issues with free models (similar unmarshal/command handling errors with MiniMax models)
  • #10657: There is a very high probability of encountering indentation bugs when using the Edit tool in OpenCode (similar issues with GLM4.7, MiniMax M2.1, and other models)
  • #10272: Hidden calls Haiku (MiniMax M2.1 configuration issues with OpenRouter)
  • #10557: pinning OpenRouter provider doesn't work (MiniMax M2.1 provider pinning issues)

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

@github-actions[bot] commented on GitHub (Jan 26, 2026): This issue might be a duplicate of existing issues. Please check: - #9733: Bug: TypeError in session prompt handling and workflow timeout issues with free models (similar unmarshal/command handling errors with MiniMax models) - #10657: There is a very high probability of encountering indentation bugs when using the Edit tool in OpenCode (similar issues with GLM4.7, MiniMax M2.1, and other models) - #10272: Hidden calls Haiku (MiniMax M2.1 configuration issues with OpenRouter) - #10557: pinning OpenRouter provider doesn't work (MiniMax M2.1 provider pinning issues) Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7682