-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Issue with Chat Input component #2230
Comments
Hello @sorenaakjaer! I'm here to help you with any bugs, questions, or contributions you have for the Langflow repository. Let me know how I can assist you! The error you're encountering with the "ChatInput" and "ChatOutput" components in Langflow is due to validation issues with the To resolve this issue, ensure that the
Make sure that when you are using the By ensuring the |
Hi The problem is not on the Chat Output component as it also fails if a drag the ChatInput component to a OpenAI Model |
ChatGPT suggest the follwing: ` class ChatInput(ChatComponent):
` It just seems strange that i need to make code adjustments to such a simple setup |
I had same issue, after disabling return record value in chat input advanced option, issue not occurred. |
Hello, |
Describe the bug
I have just installed Langflow and made the very simple flow only "ChatInput" and the "ChatOutput" compoent.
But when I run it I'm getteing the following error of the output of the ChatInput module.
In the terminal window i se the following:
_"ValidationError: 3 validation errors for Message
text.str
Input should be a valid string [type=string_type,
input_value=Message(text='Hey', sende...19:10:36', flow_id=None),
input_type=Message]
For further information visit
https://errors.pydantic.dev/2.7/v/string_type
text.is-instance[AsyncIterator]
Input should be an instance of AsyncIterator [type=is_instance_of,
input_value=Message(text='Hey', sende...19:10:36', flow_id=None),
input_type=Message]
For further information visit
https://errors.pydantic.dev/2.7/v/is_instance_of
text.is-instance[Iterator]
Input should be an instance of Iterator [type=is_instance_of,
input_value=Message(text='Hey', sende...19:10:36', flow_id=None),
input_type=Message]
For further information visit
https://errors.pydantic.dev/2.7/v/is_instance_of
I have tested towards other compoents and it seems to be a problem format of the outfrom the "ChatInput" compoent.
Browser and Version
To Reproduce
Steps to reproduce the behavior:
Screenshots
![image](https://private-user-images.githubusercontent.com/77328754/341157549-d924fbb9-e908-4be5-9c6f-2dca44a19a1a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA3MzIyNTIsIm5iZiI6MTcyMDczMTk1MiwicGF0aCI6Ii83NzMyODc1NC8zNDExNTc1NDktZDkyNGZiYjktZTkwOC00YmU1LTljNmYtMmRjYTQ0YTE5YTFhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzExVDIxMDU1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVlMzg3YTlmNzFhNjI4YWI3OWQ0NWYzZTM1YjEyZjhiMjY0ZmMyZWM2YzljZTJlMmY5ZmZkYzgwN2I1OGU3MzcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.MtDnGBKMBomuPdEokZ7HMz3c9ntTUSk02xM36uTHaUo)
Additional context
Here a the code if te ChatInput component
The text was updated successfully, but these errors were encountered: