Skip to content

Custom gateway / relay: no way to adjust effort level (reasoning effort) for custom model IDs #2318

Closed as duplicate

Description

@mercy719

What happened

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

  1. 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).
  2. Open a conversation with that custom-gateway model.
  3. 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.
  4. Expected: the user can pick an effort level, and Maka sends the matching reasoning_effort / thinking parameter to the gateway.
  5. 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.

Activity

  1. mercy719 commented on Aug 6, 2026

    @mercy719
    Author

    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.

  2. mercy719 commented on Aug 6, 2026

    @mercy719
    Author

    Closing as duplicate of #2219 (see comment above).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions