Compare commits

...

2 Commits

Author SHA1 Message Date
Wenxi
b6df06e451 add gpt 5 display names (#5175)
(cherry picked from commit 297c2957b4)
2025-08-08 17:51:49 -07:00
Wenxi
037d0cae00 feat: support gpt5 models (#5169)
* support gpt5 models

* gpt5mini visible

(cherry picked from commit cf193dee29)
2025-08-08 17:51:39 -07:00
3 changed files with 18 additions and 2 deletions

View File

@@ -397,7 +397,11 @@ class DefaultMultiLLM(LLM):
# streaming choice
stream=stream,
# model params
temperature=self._temperature,
temperature=(
1
if self.config.model_name in ["gpt-5", "gpt-5-mini", "gpt-5-nano"]
else self._temperature
),
timeout=timeout_override or self._timeout,
# For now, we don't support parallel tool calls
# NOTE: we can't pass this in if tools are not specified

View File

@@ -47,6 +47,9 @@ class WellKnownLLMProviderDescriptor(BaseModel):
OPENAI_PROVIDER_NAME = "openai"
OPEN_AI_MODEL_NAMES = [
"gpt-5",
"gpt-5-mini",
"gpt-5-nano",
"o4-mini",
"o3-mini",
"o1-mini",
@@ -73,7 +76,14 @@ OPEN_AI_MODEL_NAMES = [
"gpt-3.5-turbo-16k-0613",
"gpt-3.5-turbo-0301",
]
OPEN_AI_VISIBLE_MODEL_NAMES = ["o1", "o3-mini", "gpt-4o", "gpt-4o-mini"]
OPEN_AI_VISIBLE_MODEL_NAMES = [
"gpt-5",
"gpt-5-mini",
"o1",
"o3-mini",
"gpt-4o",
"gpt-4o-mini",
]
BEDROCK_PROVIDER_NAME = "bedrock"
# need to remove all the weird "bedrock/eu-central-1/anthropic.claude-v1" named

View File

@@ -679,6 +679,8 @@ const MODEL_DISPLAY_NAMES: { [key: string]: string } = {
"o1-mini": "o1 Mini",
"o1-preview": "o1 Preview",
o1: "o1",
"gpt-5": "GPT 5",
"gpt-5-mini": "GPT 5 Mini",
"gpt-4.1": "GPT 4.1",
"gpt-4": "GPT 4",
"gpt-4o": "GPT 4o",