aconnect_httpx_sse#

langchain_community.chat_models.baichuan.aconnect_httpx_sse(client: Any, method: str, url: str, **kwargs: Any) AsyncIterator[source]#

Async context manager for connecting to an SSE stream.

Parameters:
  • client (Any) – The httpx client.

  • method (str) – The HTTP method.

  • url (str) – The URL to connect to.

  • kwargs (Any) – Additional keyword arguments to pass to the client.

Yields:

An EventSource object.

Return type:

AsyncIterator