Skip to content

Commit a47ac1f

Browse files
cosminachoclaude
andcommitted
refactor: drop dead _UNSET/None remap on temperature in legacy dispatch
The temperature default is now 0.0 so _UNSET is unreachable, and the legacy leaf creators already skip the temperature kwarg when it's None (see _legacy/chat_model_factory.py:54). Forwarding directly preserves caller intent. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 9d7460c commit a47ac1f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/uipath_langchain/chat/chat_model_factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def _legacy_chat_model(
138138

139139
return _legacy_get_chat_model(
140140
model,
141-
temperature if temperature is not _UNSET and temperature is not None else 0.0,
141+
temperature,
142142
max_tokens,
143143
agenthub_config,
144144
byo_connection_id,

0 commit comments

Comments
 (0)