mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-15 07:36:08 +00:00
openai[patch]: exclude http client (#26891)
httpx clients aren't serializable
This commit is contained in:
parent
ce2669cb56
commit
9404e7af9d
@ -440,11 +440,11 @@ class BaseChatOpenAI(BaseChatModel):
|
|||||||
default_query: Union[Mapping[str, object], None] = None
|
default_query: Union[Mapping[str, object], None] = None
|
||||||
# Configure a custom httpx client. See the
|
# Configure a custom httpx client. See the
|
||||||
# [httpx documentation](https://www.python-httpx.org/api/#client) for more details.
|
# [httpx documentation](https://www.python-httpx.org/api/#client) for more details.
|
||||||
http_client: Union[Any, None] = None
|
http_client: Union[Any, None] = Field(default=None, exclude=True)
|
||||||
"""Optional httpx.Client. Only used for sync invocations. Must specify
|
"""Optional httpx.Client. Only used for sync invocations. Must specify
|
||||||
http_async_client as well if you'd like a custom client for async invocations.
|
http_async_client as well if you'd like a custom client for async invocations.
|
||||||
"""
|
"""
|
||||||
http_async_client: Union[Any, None] = None
|
http_async_client: Union[Any, None] = Field(default=None, exclude=True)
|
||||||
"""Optional httpx.AsyncClient. Only used for async invocations. Must specify
|
"""Optional httpx.AsyncClient. Only used for async invocations. Must specify
|
||||||
http_client as well if you'd like a custom client for sync invocations."""
|
http_client as well if you'd like a custom client for sync invocations."""
|
||||||
stop: Optional[Union[List[str], str]] = Field(default=None, alias="stop_sequences")
|
stop: Optional[Union[List[str], str]] = Field(default=None, alias="stop_sequences")
|
||||||
|
Loading…
Reference in New Issue
Block a user