langchain.chat_models.baidu_qianfan_endpoint.convert_message_to_dict

langchain.chat_models.baidu_qianfan_endpoint.convert_message_to_dict(message: BaseMessage) dict[source]

Convert a message to a dictionary that can be passed to the API.

Examples using convert_message_to_dict