chore: more sweeping (#33533)

more fixes for refs
This commit is contained in:
Mason Daugherty
2025-10-16 15:44:56 -04:00
committed by GitHub
parent 6d73003b17
commit 15db024811
13 changed files with 32 additions and 57 deletions

View File

@@ -865,7 +865,7 @@ class AzureChatOpenAI(BaseChatOpenAI):
include_raw:
If `False` then only the parsed structured output is returned. If
an error occurs during model output parsing it will be raised. If `True`
then both the raw model response (a BaseMessage) and the parsed model
then both the raw model response (a `BaseMessage`) and the parsed model
response will be returned. If an error occurs during output parsing it
will be caught and returned as well. The final output is always a dict
with keys `'raw'`, `'parsed'`, and `'parsing_error'`.
@@ -945,13 +945,6 @@ class AzureChatOpenAI(BaseChatOpenAI):
- `'parsed'`: None if there was a parsing error, otherwise the type depends on the `schema` as described above.
- `'parsing_error'`: BaseException | None
!!! warning "Behavior changed in 0.1.20"
Added support for TypedDict class `schema`.
!!! warning "Behavior changed in 0.1.21"
Support for `strict` argument added.
Support for `method="json_schema"` added.
!!! warning "Behavior changed in 0.3.0"
`method` default changed from "function_calling" to "json_schema".

View File

@@ -1676,9 +1676,6 @@ class BaseChatOpenAI(BaseChatModel):
parallel_tool_calls: Set to `False` to disable parallel tool use.
Defaults to `None` (no specification, which allows parallel tool use).
kwargs: Any additional parameters are passed directly to `bind`.
!!! warning "Behavior changed in 0.1.21"
Support for `strict` argument added.
""" # noqa: E501
if parallel_tool_calls is not None:
kwargs["parallel_tool_calls"] = parallel_tool_calls
@@ -1766,7 +1763,7 @@ class BaseChatOpenAI(BaseChatModel):
include_raw:
If `False` then only the parsed structured output is returned. If
an error occurs during model output parsing it will be raised. If `True`
then both the raw model response (a BaseMessage) and the parsed model
then both the raw model response (a `BaseMessage`) and the parsed model
response will be returned. If an error occurs during output parsing it
will be caught and returned as well. The final output is always a dict
with keys `'raw'`, `'parsed'`, and `'parsing_error'`.