-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API does not work with the ChatMessage #11
Comments
Hey! I have a similar problem where I send a messages dict to a Multiplexer component in a pipeline. But it is not converted to a List[ChatMessage] but rather a dict is passed on. So my serialized pipeline looks like this:
and in my API call
this raises an error in the Generator:
Update: A custom component included before the multiplexer helped me work around the errors - leaving it here in case somebody else runs into the same issue:
|
Hayhooks fails with Chat Messages because the pydantic conversion to a dict remove ChatMessage class.
I had to work around like this:
The text was updated successfully, but these errors were encountered: