message of type RemoveMessage is not handled in langchain- #28900
Labels
🤖:bug
Related to a bug, vulnerability, unexpected error with an existing feature
Ɑ: core
Related to langchain-core
investigate
Flagged for investigation.
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
In langchain_openai.chat_models.base (and more specifically in langchain_openai.chat_models.base._convert_message_to_dict) there is no handling of messages of type RemoveMessage and it fails over unknown type
System Info
The text was updated successfully, but these errors were encountered: