chore(core,langchain,openai): refresh stale OpenAI model references (#37487)

This commit is contained in:
Mason Daugherty
2026-05-17 23:06:42 -07:00
committed by GitHub
parent 73d4fd98c2
commit 6c091564ac
21 changed files with 73 additions and 97 deletions

View File

@@ -539,12 +539,13 @@ class AzureChatOpenAI(BaseChatOpenAI):
"""
model_name: str | None = Field(default=None, alias="model") # type: ignore[assignment]
"""Name of the deployed OpenAI model, e.g. `'gpt-4o'`, `'gpt-35-turbo'`, etc.
"""Name of the deployed OpenAI model.
Distinct from the Azure deployment name, which is set by the Azure user.
Used for tracing and token counting.
!!! warning
Does NOT affect completion.
"""

View File

@@ -2323,7 +2323,7 @@ class BaseChatOpenAI(BaseChatModel):
\"\"\"Get weather at a location.\"\"\"
pass
model = init_chat_model("openai:gpt-4o-mini")
model = init_chat_model("openai:gpt-5.5")
structured_model = model.with_structured_output(
ResponseSchema,
@@ -3472,7 +3472,7 @@ class ChatOpenAI(BaseChatOpenAI): # type: ignore[override]
\"\"\"Get weather at a location.\"\"\"
pass
model = init_chat_model("openai:gpt-4o-mini")
model = init_chat_model("openai:gpt-5.5")
structured_model = model.with_structured_output(
ResponseSchema,

View File

@@ -105,7 +105,7 @@ class ChatOpenRouter(BaseChatModel):
| Param | Type | Description |
| ----- | ---- | ----------- |
| `model` | `str` | Model name, e.g. `'openai/gpt-4o-mini'`. |
| `model` | `str` | Model name |
| `temperature` | `float | None` | Sampling temperature. |
| `max_tokens` | `int | None` | Max tokens to generate. |