langchain_community.chat_models.cohere.get_cohere_chat_request

langchain_community.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 (List[BaseMessage]) – The messages.

  • connectors (Optional[List[Dict[str, str]]]) – The connectors.

  • **kwargs (Any) – The keyword arguments.

Returns

The request for the Cohere chat API.

Return type

Dict[str, Any]