Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion custom_components/configurable_llm/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

# `reasoning_effort` choices offered for OpenAI-compatible providers. Servers and
# models vary in what they accept; "none" means "do not send the parameter".
REASONING_EFFORT_OPTIONS = ["none", "low", "medium", "high"]
REASONING_EFFORT_OPTIONS = ["none", "minimal", "low", "medium", "high"]

CONF_WEB_FETCH_MAX_USES = "web_fetch_max_uses"
CONF_WEB_SEARCH = "web_search"
Expand Down
1 change: 1 addition & 0 deletions custom_components/configurable_llm/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@
"reasoning_effort": {
"options": {
"none": "Default (none)",
"minimal": "Minimal",
"low": "Low",
"medium": "Medium",
"high": "High"
Expand Down
1 change: 1 addition & 0 deletions custom_components/configurable_llm/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@
"reasoning_effort": {
"options": {
"none": "Default (none)",
"minimal": "Minimal",
"low": "Low",
"medium": "Medium",
"high": "High"
Expand Down
8 changes: 8 additions & 0 deletions tests/providers/test_openai_chat_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,14 @@ async def test_build_request_sampling_params(hass: HomeAssistant) -> None:
assert "reasoning_effort" not in request


async def test_build_request_reasoning_effort_minimal(hass: HomeAssistant) -> None:
"""'minimal' effort is forwarded verbatim, not treated like 'none'."""
options = {**DEFAULT_OPENAI, CONF_REASONING_EFFORT: "minimal"}
request, _ = await provider.build_request(_ctx(options=options))

assert request["reasoning_effort"] == "minimal"


async def test_build_request_tools(hass: HomeAssistant) -> None:
"""HA tools become Chat Completions function tools."""
request, _ = await provider.build_request(_ctx(with_tools=True))
Expand Down
Loading