mirror of https://github.com/openclaw/openclaw.git
When a built-in provider model has reasoning:true (e.g. MiniMax-M2.5) and the user explicitly sets reasoning:false in their config, mergeProviderModels unconditionally overwrote the user's value with the built-in catalog value. The merge code refreshes capability metadata (input, contextWindow, maxTokens, reasoning) from the implicit catalog. This is correct for fields like contextWindow and maxTokens — the catalog has authoritative values that shouldn't be stale. But reasoning is a user preference, not just a capability descriptor: users may need to disable it to avoid 'Message ordering conflict' errors with certain models or backends. Fix: check whether 'reasoning' is present in the explicit (user-supplied) model entry. If the user has set it (even to false), honour that value. If the user hasn't set it, fall back to the built-in catalog default. This allows users to configure tools.models.providers.minimax.models with reasoning:false for MiniMax-M2.5 without being silently overridden. Fixes #25244 |
||
|---|---|---|
| .. | ||
| acp | ||
| agents | ||
| auto-reply | ||
| browser | ||
| canvas-host | ||
| channels | ||
| cli | ||
| commands | ||
| compat | ||
| config | ||
| cron | ||
| daemon | ||
| discord | ||
| docs | ||
| gateway | ||
| hooks | ||
| imessage | ||
| infra | ||
| line | ||
| link-understanding | ||
| logging | ||
| markdown | ||
| media | ||
| media-understanding | ||
| memory | ||
| node-host | ||
| pairing | ||
| plugin-sdk | ||
| plugins | ||
| process | ||
| providers | ||
| routing | ||
| scripts | ||
| security | ||
| sessions | ||
| shared | ||
| signal | ||
| slack | ||
| telegram | ||
| terminal | ||
| test-helpers | ||
| test-utils | ||
| tts | ||
| tui | ||
| types | ||
| utils | ||
| web | ||
| wizard | ||
| channel-web.ts | ||
| docker-image-digests.test.ts | ||
| docker-setup.test.ts | ||
| dockerfile.test.ts | ||
| entry.ts | ||
| extensionAPI.ts | ||
| globals.ts | ||
| index.ts | ||
| logger.test.ts | ||
| logger.ts | ||
| logging.ts | ||
| polls.test.ts | ||
| polls.ts | ||
| runtime.ts | ||
| utils.test.ts | ||
| utils.ts | ||
| version.test.ts | ||
| version.ts | ||