langchain_community.chat_loaders.utils
.map_ai_messages¶
- langchain_community.chat_loaders.utils.map_ai_messages(chat_sessions: Iterable[ChatSession], sender: str) Iterator[ChatSession] [source]¶
将来自指定“发送者”的消息转换为AI消息。
这对于微调AI以适应您的语音非常有用。
- Parameters
chat_sessions (Iterable[ChatSession]) –
sender (str) –
- Return type
Iterator[ChatSession]