making gpt5 models have temp 1 (#3849)

This commit is contained in:
pedrohsdb
2025-10-29 09:11:08 -07:00
committed by GitHub
parent e1cff63dae
commit 46ee020b5d

View File

@@ -80,7 +80,7 @@ if settings.ENABLE_OPENAI:
supports_vision=True,
add_assistant_prefix=False,
max_completion_tokens=128000,
temperature=None,
temperature=1, # GPT-5 only supports temperature=1
reasoning_effort=settings.GPT5_REASONING_EFFORT,
),
)
@@ -92,7 +92,7 @@ if settings.ENABLE_OPENAI:
supports_vision=True,
add_assistant_prefix=False,
max_completion_tokens=128000,
temperature=None,
temperature=1, # GPT-5 only supports temperature=1
reasoning_effort=settings.GPT5_REASONING_EFFORT,
),
)
@@ -104,7 +104,7 @@ if settings.ENABLE_OPENAI:
supports_vision=True,
add_assistant_prefix=False,
max_completion_tokens=128000,
temperature=None,
temperature=1, # GPT-5 only supports temperature=1
reasoning_effort=settings.GPT5_REASONING_EFFORT,
),
)
@@ -606,7 +606,7 @@ if settings.ENABLE_AZURE_GPT5:
supports_vision=True,
add_assistant_prefix=False,
max_completion_tokens=128000,
temperature=None,
temperature=1, # GPT-5 only supports temperature=1
reasoning_effort=settings.GPT5_REASONING_EFFORT,
),
)
@@ -631,7 +631,7 @@ if settings.ENABLE_AZURE_GPT5_MINI:
supports_vision=True,
add_assistant_prefix=False,
max_completion_tokens=128000,
temperature=None,
temperature=1, # GPT-5 only supports temperature=1
reasoning_effort=settings.GPT5_REASONING_EFFORT,
),
)
@@ -656,7 +656,7 @@ if settings.ENABLE_AZURE_GPT5_NANO:
supports_vision=True,
add_assistant_prefix=False,
max_completion_tokens=128000,
temperature=None,
temperature=1, # GPT-5 only supports temperature=1
reasoning_effort=settings.GPT5_REASONING_EFFORT,
),
)