Repository navigation
docs(openspec): plan #2559 pass per-call sampling to LLM payload - #2997
Merged
Merged
Conversation
dan-petty
marked this pull request as ready for review
November 1, 2026 10:23
This was referenced Nov 1, 2026
fix(roadmap): the stage job refuses a plan whose group reads a path that a later group creates
#3017
Closed
dan-petty
added a commit
that referenced
this pull request
Nov 1, 2026
This change corrects the plan for #2559 in place. An evaluation of the staging pull request #2997 found defects in the plan. The corrected plan does these things: - It orders the task groups by provider, so each group ends with a passing test suite. - It makes the cache key hash a per-call sampling value unless `use_model_sampling` is on. The old rule left a stale cache hit for Ollama and Claude with `supports_reasoning`. - It makes the seed rule read the same in the proposal, the design, the tasks and the spec. - It states the sampling gates in the spec, with scenarios for a reasoning model and for a Claude model without sampling support. The change touches only the change folder of #2559. It changes no code and no test. Plans #2559
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.
Plans #2559
LLMClient.chat and chat_messages accept **kwargs but ignore temperature, top_p, and seed. The review analysis module passes these values and expects them to reach the model, but the request carries the client config defaults instead. This change replaces **kwargs with explicit temperature, top_p, and seed parameters. It threads them through the dispatch chain to the provider payload builders and the cache key. A per-call value overrides the config value when not None. The Claude provider omits seed, as the Anthropic API does not accept it. An unknown keyword argument now raises TypeError. Files changed: src/devops_cli/ai/client/unified.py, src/devops_cli/ai/client/openai.py, src/devops_cli/ai/client/ollama.py, src/devops_cli/ai/client/claude.py, and their tests.
Change:
openspec/changes/2559-llmclient-chat-takes-temperature-top-p/