Skip to content

Add minimal to OpenAI reasoning effort options - #9

Merged
imonlinux merged 1 commit into
imonlinux:mainfrom
AimanFarooq:feat/reasoning-effort-minimal
Nov 3, 2026
Merged

imonlinux merged 1 commit into
imonlinux:mainfrom
AimanFarooq:feat/reasoning-effort-minimal

Conversation

@AimanFarooq

Copy link
Copy Markdown
Contributor

Closes #7.

Adds minimal to the OpenAI-protocol reasoning effort selector, for reasoning models that accept it (OpenAI's gpt-5 family, Meta's Muse Spark). On Muse Spark it roughly halves time to first text for short Assist answers compared with low (timings in #7).

Changes

  • const.py: REASONING_EFFORT_OPTIONS is now ["none", "minimal", "low", "medium", "high"]. The default stays none, so existing entries are unchanged.
  • strings.json / translations/en.json: "minimal": "Minimal" label in selector.reasoning_effort.options.
  • tests/providers/test_openai_chat_provider.py: new test_build_request_reasoning_effort_minimal asserting minimal is forwarded verbatim.

No provider change was needed: build_request already forwards any effort other than none.

The temperature/top_p point from the issue is left for a separate change.

Validation

Full suite on Python 3.13 with requirements_test.txt (HA 2025.8.1 tree): 134 passed, 2 skipped (was 133 passed, 2 skipped; +1 new test).

Suggested changelog line, if useful: Added — minimal reasoning effort option for OpenAI-compatible providers (#7).

Reasoning models such as OpenAI's gpt-5 family and Meta's Muse Spark accept
reasoning_effort=minimal, which roughly halves first-text latency for short
voice-assistant answers compared to low. The provider already forwards any
value other than none, so only the selector options, labels and a test change.

Closes imonlinux#7
@imonlinux
imonlinux merged commit 9193b43 into imonlinux:main Nov 3, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enhance Meta Model API support: add minimal to reasoning effort options

2 participants