You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Custom gateway / relay: no way to adjust effort level (reasoning effort) for custom model IDs #2318
When using a custom gateway / relay (e.g. "Custom relay (OpenAI Chat)", "Custom relay (OpenAI Responses)", or "Custom relay (Anthropic)") with a custom model ID, there is no way to adjust the effort level (reasoning effort / thinking level). The effort/thinking selector in the Desktop UI is missing or disabled, and the CLI /thinking command reports "当前模型不支持思考级别切换。" ("current model does not support thinking-level switching").
How to reproduce
In Settings → Models, add a custom gateway (OpenAI-compatible relay, proxy, or self-hosted gateway) and point it at a reasoning-capable model (e.g. a DeepSeek / Qwen / OpenAI-compatible model that supports reasoning_effort).
Open a conversation with that custom-gateway model.
Try to change the thinking/effort level: look for the effort selector in the model switcher / session settings (Desktop), or run /thinking low|medium|high in the CLI.
Expected: the user can pick an effort level, and Maka sends the matching reasoning_effort / thinking parameter to the gateway.
Actual: the effort selector is absent/disabled; the CLI rejects the command because the model's thinkingLevels list is empty.
Environment
Maka version: 0.1.6 (macOS arm64 dmg)
OS: macOS
Surface: Desktop (also observed in CLI/TUI)
Model connection: custom OpenAI-compatible gateway with a custom model ID
Logs, screenshots, or additional context
Root cause from the code: effort/thinking levels come exclusively from lookupModelMetadata(providerType, modelId) in packages/core/src/model-metadata.ts, which only consults the models.dev snapshot (generatedMetadata) plus hardcoded overrides (STATIC_MODEL_METADATA). For a custom gateway the model ID is user-defined and almost never present there, so thinkingOptions is undefined and thinkingLevels becomes empty — every effort selector is then gated off even when the underlying model genuinely supports reasoning_effort.
Suggested fix (any of):
Let custom-gateway connections declare an effort/thinking level manually (e.g. a per-connection or per-model override in the gateway settings), forwarded as reasoning_effort / thinking.budget_tokens on the wire.
Or: when the model ID is unknown but the gateway is custom, still expose the standard effort set (low/medium/high, or a configurable list) instead of disabling it.
This issue duplicates #2219 ("feat: 允许为 openai-compatible(中转站)连接手动声明 thinkingOptions,以启用思考深度调节", by @cat0825, 2026-08-05), which covers the same root cause with a more complete implementation proposal (per-model thinkingOptions declaration in llm-connections.ts, thinkingVariantsForConnection fallback, UI editor, tests) and maintainer-confirmed direction.
The only additional signal in this issue worth keeping: the CLI /thinking path is also blocked with the same empty thinkingLevels list, not just the Desktop selector.
Closing as duplicate — please track the fix in #2219.
Activity
mercy719 commentedon Aug 6, 2026
This issue duplicates #2219 ("feat: 允许为 openai-compatible(中转站)连接手动声明 thinkingOptions,以启用思考深度调节", by @cat0825, 2026-08-05), which covers the same root cause with a more complete implementation proposal (per-model
thinkingOptionsdeclaration inllm-connections.ts,thinkingVariantsForConnectionfallback, UI editor, tests) and maintainer-confirmed direction.The only additional signal in this issue worth keeping: the CLI
/thinkingpath is also blocked with the same emptythinkingLevelslist, not just the Desktop selector.Closing as duplicate — please track the fix in #2219.
mercy719 commentedon Aug 6, 2026
Closing as duplicate of #2219 (see comment above).