mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 10:17:00 +00:00
chore(core,langchain,openai): refresh stale OpenAI model references (#37487)
This commit is contained in:
@@ -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.
|
||||
"""
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user