langchain.chat_models.cohere.get_cohere_chat_request

langchain.chat_models.cohere.get_cohere_chat_request(messages: List[BaseMessage], *, connectors: Optional[List[Dict[str, str]]] = None, **kwargs: Any) Dict[str, Any][source]

Get the request for the Cohere chat API.

Parameters
  • messages – The messages.

  • connectors – The connectors.

  • **kwargs – The keyword arguments.

Returns

The request for the Cohere chat API.