Skip to content

Model default reasoning_effort: none does not work #10622

Description

@mmelvin0

LocalAI version:
4.5.6

Environment, CPU architecture, OS, and Version:
Linux marvin 7.0.14-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 27 Jun 2026 16:15:10 +0000 x86_64 GNU/Linux

Describe the bug
Setting reasoning_effort: none without explicitly setting reasoning.disable does not have the desired effect.

To Reproduce
Set reasoning_effort: none in a model.yaml without explicitly setting any value for reasoning.disable.

Make the first request to a model with no reasoning effort or explicit reasoning_effort = "none" param in the request, and reasoning.disable gets set to true.

This would work as intended, except that it still needs to probe for the media marker, which then updates reasoning.disable to true in memory, and is returned with that value for the next request. The probe does not actually change this value. The post-probe UpdateModelConfig saves the result from ApplyReasoningEffort, which should not be connected.

One the next request, the reasoning effort gets passed through, but now reasoning.disable is set to true (as if set by the operator) so the reasoning_effort param has no effect.

Expected behavior
If I set reasoning_effort: none in model.yaml and do not set any value for reasoning.disable, I expect none to be the default, but to retain the ability to request extra thinking via the reasoning_effort request param.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions