openclaw - 💡(How to fix) Fix [Bug]: openclaw.json MiniMax API-key config regressed to incompatible OpenAI endpoint [3 comments, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#53690Fetched 2026-04-08 01:24:46
View on GitHub
Comments
3
Participants
1
Timeline
5
Reactions
0
Participants
Timeline (top)
commented ×3closed ×1locked ×1

The recent config-only commit 4ce9d57d558649b2ec912ce4396157a7688342e3 switched models.providers.minimax in openclaw.json to the OpenAI-compatible endpoint:

  • baseUrl: https://api.minimax.io/v1
  • api: openai-completions

In this environment, the installed OpenClaw package documents and ships the MiniMax provider on the Anthropic-compatible endpoint instead. Its local changelog explicitly records that this switch fixes MiniMax invalid role: developer (2013) failures.

Root Cause

The recent config-only commit 4ce9d57d558649b2ec912ce4396157a7688342e3 switched models.providers.minimax in openclaw.json to the OpenAI-compatible endpoint:

  • baseUrl: https://api.minimax.io/v1
  • api: openai-completions

In this environment, the installed OpenClaw package documents and ships the MiniMax provider on the Anthropic-compatible endpoint instead. Its local changelog explicitly records that this switch fixes MiniMax invalid role: developer (2013) failures.

RAW_BUFFERClick to expand / collapse

Summary

The recent config-only commit 4ce9d57d558649b2ec912ce4396157a7688342e3 switched models.providers.minimax in openclaw.json to the OpenAI-compatible endpoint:

  • baseUrl: https://api.minimax.io/v1
  • api: openai-completions

In this environment, the installed OpenClaw package documents and ships the MiniMax provider on the Anthropic-compatible endpoint instead. Its local changelog explicitly records that this switch fixes MiniMax invalid role: developer (2013) failures.

Evidence

  • Regressing commit: 4ce9d57d558649b2ec912ce4396157a7688342e3 (Normalize OpenClaw config for MiniMax M2.7)
  • Changed file: openclaw.json
  • Local installed package evidence:
    • /Users/openclaw/.openclaw/lib/node_modules/openclaw/CHANGELOG.md
    • /Users/openclaw/.openclaw/lib/node_modules/openclaw/dist/extensions/minimax/index.js
    • /Users/openclaw/.openclaw/lib/node_modules/openclaw/docs/providers/minimax.md

Minimal fix

Restore MiniMax API-key config to:

  • baseUrl: https://api.minimax.io/anthropic
  • api: anthropic-messages

extent analysis

Fix Plan

To resolve the issue, we need to update the models.providers.minimax configuration in openclaw.json to use the Anthropic-compatible endpoint.

Step-by-Step Solution

  • Update openclaw.json with the following configuration:
{
  "models": {
    "providers": {
      "minimax": {
        "baseUrl": "https://api.minimax.io/anthropic",
        "api": "anthropic-messages"
      }
    }
  }
}
  • Verify that the openclaw package is using the updated configuration by checking the logs or running a test query.

Verification

To verify that the fix worked, check for the following:

  • The invalid role: developer (2013) error is resolved.
  • The MiniMax provider is functioning correctly with the updated configuration.

Extra Tips

  • Ensure that the openclaw package is up-to-date and compatible with the Anthropic-compatible endpoint.
  • Review the CHANGELOG.md and documentation for any additional configuration requirements or updates.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING