connect_httpx_sse#

langchain_community.chat_models.minimax.connect_httpx_sse(client: Any, method: str, url: str, **kwargs: Any) Iterator[source]#

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:

Iterator