mirror of https://github.com/openclaw/openclaw.git
MiniMax M2.7 returns reasoning_content in OpenAI-style delta chunks
({delta: {content: "", reasoning_content: "..."}}) when thinking is
active, rather than native Anthropic thinking block SSE events. Pi-ai's
Anthropic provider does not handle this format, causing the model's
internal reasoning to appear as visible chat output.
Add createMinimaxThinkingDisabledWrapper that injects
thinking: {type: "disabled"} into the outgoing payload for any MiniMax
anthropic-messages request where thinking is not already explicitly
configured, preventing the provider from generating reasoning_content
deltas during streaming.
Fixes #55739
|
||
|---|---|---|
| .. | ||
| acp | ||
| agents | ||
| auto-reply | ||
| bindings | ||
| bootstrap | ||
| canvas-host | ||
| channels | ||
| chat | ||
| cli | ||
| commands | ||
| compat | ||
| config | ||
| context-engine | ||
| cron | ||
| daemon | ||
| docs | ||
| flows | ||
| gateway | ||
| generated | ||
| hooks | ||
| i18n | ||
| image-generation | ||
| infra | ||
| interactive | ||
| link-understanding | ||
| logging | ||
| markdown | ||
| mcp | ||
| media | ||
| media-understanding | ||
| node-host | ||
| pairing | ||
| plugin-sdk | ||
| plugins | ||
| process | ||
| realtime-transcription | ||
| realtime-voice | ||
| routing | ||
| scripts | ||
| secrets | ||
| security | ||
| sessions | ||
| shared | ||
| tasks | ||
| terminal | ||
| test-helpers | ||
| test-utils | ||
| tts | ||
| tui | ||
| types | ||
| utils | ||
| web-fetch | ||
| web-search | ||
| wizard | ||
| browser-lifecycle-cleanup.test.ts | ||
| browser-lifecycle-cleanup.ts | ||
| channel-web.ts | ||
| docker-build-cache.test.ts | ||
| docker-image-digests.test.ts | ||
| docker-setup.e2e.test.ts | ||
| dockerfile.test.ts | ||
| entry.respawn.test.ts | ||
| entry.respawn.ts | ||
| entry.test.ts | ||
| entry.ts | ||
| entry.version-fast-path.test.ts | ||
| extensionAPI.ts | ||
| global-state.ts | ||
| globals.ts | ||
| index.test.ts | ||
| index.ts | ||
| install-sh-version.test.ts | ||
| library.test.ts | ||
| library.ts | ||
| logger.test.ts | ||
| logger.ts | ||
| logging.ts | ||
| param-key.ts | ||
| plugin-activation-boundary.test.ts | ||
| poll-params.test.ts | ||
| poll-params.ts | ||
| polls.test.ts | ||
| polls.ts | ||
| runtime.ts | ||
| ui-app-settings.agents-files-refresh.test.ts | ||
| utils.test.ts | ||
| utils.ts | ||
| version.test.ts | ||
| version.ts | ||