Conversation
- Detect local Ollama endpoints without matching path fragments - Probe native model capabilities for local thinking support - Force stale persisted effort to none for non-thinking models - Preserve thinking-capable and non-Ollama custom endpoints - Add provider and runtime regression coverage
13 tasks
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
reasoning_effortvalues from breaking local Ollama models that do not support thinking.Technical implementation details
ollamaprovider, the genuineollama.comhost, or parsed port11434(without matching path fragments)./api/showcapability probe for local models, rather than assuming every local model can reason.thinkingcapability, clamp a stale session-level effort to top-levelreasoning_effort="none"andextra_body.think=false.Testing steps
uv run --isolated --with ruff==0.15.10 ruff check plugins/model-providers/custom/__init__.py run_agent.py tests/plugins/model_providers/test_custom_profile.py tests/run_agent/test_run_agent.pyuv run --isolated --with pytest==9.1.1 --with 'anthropic>=0.39.0' python -m pytest tests/plugins/model_providers tests/run_agent/test_run_agent.py -q418 passed, 1 warning.test_direct_session_db_flushes_share_marker_claim; no test failed.granite4.1:8b-hermes64kand a persistedmediumeffort returnedHERMES_MEDIUM_CLAMP_OKinstead of HTTP 400.Related issues/tickets
think=Falseincorrectly sent to allprovider=customendpoints, not just Ollama #11237.