Repository navigation
Custom (OpenAI-compatible) provider models cannot be given reasoning-effort levels from the GUI #843
Replies: 7 comments
|
This is the exact gap: hand-declared ( I built a small dual-face plugin for this: dsh-thinking-effort (MIT)
Install: dsh plugin --profile <profile> add github:hytime/dsh-thinking-effortAI-friendly install doc: https://github.com/hytime/dsh-thinking-effort/blob/main/INSTALL.md |
|
Confirmed on
A native UI should keep the declaration explicit rather than infer it from a model name or
This is a first-party Settings UX gap, not a missing LLM capability. Third-party plugins can help as a temporary workaround, but the native custom-provider editor should be able to write the supported References: E2E coverage, per-model config contract. |
Following the documented workaround above (hand-editing Root cause trace (pi-ai
Net effect: reasoning can only be enabled for custom gateways that happen to accept Suggested fix: expose Repro: custom provider |
|
The native GUI gap described here still exists, and the later A provider-package route avoids both when a Pi provider exists for the gateway: dsh plugin --profile web add pi2dsh
dsh plugin --profile web add <Pi provider package>pi2dsh registers a transport-carrying Pi provider through DSH This was checked at both surfaces: the real DSH model picker exposed the provider-defined levels, and the recorded wire request used |
|
Additional data point: custom OpenAI Chat Completions relay I can reproduce the same gap on DSH 0.1.7-alpha.1 with a custom OpenAI-compatible provider:
Settings > Models only exposes display name and model ID for each row. There is no reasoningEfforts editor, and the composer never offers the reasoning-effort pane for these models, so there is no GUI path to choose a level. I also want the fallback behavior to be explicit:
Suggestion, on top of the per-model editor in the original post:
Until then, the settings.yaml workaround from the original post is the only option. |
|
My use case is a custom OpenAI-compatible model accessed through a relay gateway. The custom model editor does not let me configure per-model reasoning efforts, so the composer does not show an Effort selector. |
Follow-up: distinguish undeclared reasoning levels from disabled thinkingAdditional reproducible data point on I checked the current provider guide: the native per-model editor now exists under Settings → Models → Customized settings → Model options → Reasoning levels. This follow-up is about discoverability and wording, rather than claiming that the editor or runtime support is still missing. Observed behavior
Our working per-model declaration is: reasoningEfforts:
off:
low: low
high: high
max: maxThe route uses Small, focused improvements to consider
I see that CONTRIBUTING.md currently says external PRs are not accepted. Would maintainers consider a small documentation clarification and/or a focused UI hint contribution here, or would you prefer to implement this internally? Happy to scope a patch to the accepted direction. All configuration above is sanitized; no private endpoint or credentials are included. |
Uh oh!
There was an error while loading. Please reload this page.
Summary
When connecting models through a custom (OpenAI-compatible) provider — e.g. a relay gateway fronting ChatGPT or DeepSeek — there is no way in the web GUI to make reasoning effort selectable for those models. The composer's model picker never shows the 推理等级 (reasoning effort) pane for them, so the user cannot choose a thinking intensity, even though the engine fully supports it.
Expected
After adding a custom provider (or editing its models) in Settings → Models, the user should be able to declare which reasoning-effort levels each model supports (e.g.
off / low / medium / high), and the composer's model picker should then offer those levels exactly as it does for the shipped DeepSeek models.Actual
id,name,contextWindow,maxTokens(packages/client/ui-settings-models/src/client/ModelListEditor.tsx)./modelsendpoint carry no reasoning metadata at all (DiscoveredModelViewis onlyid/name/contextWindow/maxTokensinpackages/host/apiproxy/src/api/llm.ts).resolveModelreturns noreasoningfield for these models (reasoningInfo()inpackages/llm/llm-pi-ai/src/adapter.ts), andModelSelect.tsxhides the effort pane entirely whenmodel.reasoningis undefined.Root cause
Reasoning effort is deliberately a per-model capability: the engine supports declaring
models[].reasoningEfforts(level → wire spelling, e.g.{ off: null, high: 'high', max: 'ultra' }) insettings.yamlforllm-pi-aiproviders, and the composer surfaces it correctly — proven by theapps/web/tests/declared-reasoning.e2e.tstest. The gap is that the GUI offers no way to set that field: neither the custom-provider create card nor the model editor exposes it, and the fetch dialog cannot discover it.Workaround
Hand-edit
settings.yaml:Suggested fix
Add a per-model
reasoningEffortseditor to the custom-provider model rows (alongsidecontextWindow/maxTokensin the advanced fold), and optionally surface reasoning hints in the fetch dialog. The settings schema (packages/llm/llm-pi-ai/src/config.ts) already accepts the field, so this is primarily a UI gap.All reactions