We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e3eb1a commit 36ba981Copy full SHA for 36ba981
.changeset/towering-organic-grouse.md
@@ -0,0 +1,5 @@
1
+---
2
+"stagehand": patch
3
4
+
5
+Fix temperature setting for GPT-5 family of models
stagehand/llm/client.py
@@ -110,6 +110,9 @@ def create_response(
110
filtered_params = {
111
k: v for k, v in params.items() if v is not None or k in kwargs
112
}
113
+ # Fixes parameters for GPT-5 family of models
114
+ if "gpt-5" in completion_model:
115
+ filtered_params["temperature"] = 1
116
117
self.logger.debug(
118
f"Calling litellm.completion with model={completion_model} and params: {filtered_params}",
0 commit comments