Repository navigation
Llm migration - #322
Merged
Merged
Llm migration#322
Conversation
adamjohnwright
approved these changes
Nov 9, 2026
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
Current OpenAI models, including gpt-6-luna (the new default), accept only their own default temperature and take a reasoning effort instead. previously, the chatbot sent every call a temperature from a hand-maintained table of models, and sent
0.0to any model not in it.This PR stops sending a temperature to OpenAI models and sends a reasoning effort instead:
lowfor the steps before the answer,mediumfor the answer. It also checks those settings against the API at startup, so a bad configuration fails the deploy, not a user.What changed
What each model call sends (
src/agent/graph.py,src/agent/models.py)low. The final answer generation LLM runs with reasoning_effort set tomedium.resolve_temperatureandbin/probe_model_temperature. They describe behaviour that no longer exists.get_llmnow requires the decided parameters and no longer defaults to0.0, so code that skips the shared decision fails type checking.Startup check
medium. Asking the API avoids keeping another table by hand.config.ymlorLLM_TEMPERATURE) and a reasoning effort set for Ollama.Configuration
config.yml:llm.reasoning_effort(defaultlow) andllm.answer_reasoning_effort(defaultmedium)..config.schema.yaml,config_default.ymland the env templates are updated to match.Answer calls
Every place that builds a model now uses
build_llmconfig.yml. They now read it.Defaults
Notes
LLM_TEMPERATUREwith OpenAI, will refuse to start until it is updated.Example
example generated by the new LLM: