We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb6dc3a commit 5a46158Copy full SHA for 5a46158
openhands-sdk/openhands/sdk/llm/options/chat_options.py
@@ -39,12 +39,8 @@ def select_chat_options(
39
if llm.reasoning_effort is not None:
40
out["reasoning_effort"] = llm.reasoning_effort
41
42
- # OpenAI reasoning models (o1, o3) ignore temp/top_p
43
- # Gemini models DO respect temperature, so we only pop for OpenAI
44
- model_lower = llm.model.lower()
45
- # Normalize to basename so provider-prefixed IDs like "openai/o1" are handled
46
- model_name = model_lower.split("/")[-1]
47
- if model_name.startswith(("o1", "o3")):
+ # All reasoning models ignore temp/top_p, except Gemini
+ if "gemini" not in llm.model.lower():
48
out.pop("temperature", None)
49
out.pop("top_p", None)
50
0 commit comments