feat(ai): set the default temperature to 0 and allow users to configure it #1654
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.
Motivation
vlm-ui-tarsby defaulting its temperature to0.0unless overridden.Description
MIDSCENE_MODEL_TEMPERATURE,MIDSCENE_INSIGHT_MODEL_TEMPERATURE, andMIDSCENE_PLANNING_MODEL_TEMPERATUREand wire them intoMODEL_ENV_KEYSand related config structures.IModelConfigwith atemperaturefield and parse it inparseOpenaiSdkConfigto includetemperaturein the resolved model config.modelConfig.temperatureincallAI(falling back to0.0forvlm-ui-tars) and include it incommonConfigsent to the SDK.temperatureto the comma-separateddebugProfileStatsoutput in both streaming and non-streaming code paths, and update English/Chinesemodel-configdocs to document the new env variables.Testing
Codex Task