Skip to content

Commit bf497ca

Browse files
author
Your Name
committed
Don't modify temperature value in models that don't support it
1 parent 57029fa commit bf497ca

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

cecli/models.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,6 +1000,10 @@ async def send_completion(
10001000
else:
10011001
temperature = float(self.use_temperature)
10021002
kwargs["temperature"] = temperature
1003+
else:
1004+
if override_kwargs and override_kwargs.get("temperature", None):
1005+
override_kwargs.pop("temperature", None)
1006+
10031007
effective_tools = tools
10041008
if effective_tools is None and functions:
10051009
effective_tools = [dict(type="function", function=f) for f in functions]

0 commit comments

Comments
 (0)