Skip to content
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

Chat input component does not accept text input #4660

Closed
SavvySupport opened this issue Nov 18, 2024 · 5 comments · Fixed by #4666
Closed

Chat input component does not accept text input #4660

SavvySupport opened this issue Nov 18, 2024 · 5 comments · Fixed by #4666
Assignees
Labels
bug Something isn't working

Comments

@SavvySupport
Copy link

Bug Description

I'm trying to use "text input" to feed into "chat input" component. However, when I try to run "chat input" with "text input" connected, it says "Component text input has not been built yet."

This is despite the "text input" component running fine and the "chat input" component is also running fine separately.

Reproduction

  1. Turn on "session ID" for chat input.
  2. Connect a "text input" component to "session ID" for chat input.
  3. Run the "chat input" component.

Expected behavior

Expecting the chat input component to successfully run, without error messages.

Who can help?

No response

Operating System

MacOS

Langflow Version

1.1

Python Version

3.10

Screenshot

Screenshot 2024-11-18 at 3 49 43 pm Screenshot 2024-11-18 at 3 49 53 pm

Flow File

No response

@SavvySupport SavvySupport added the bug Something isn't working label Nov 18, 2024
Copy link

dosubot bot commented Nov 18, 2024

The error message "Component text input has not been built yet" suggests that there might be an issue with the dependencies or prerequisites for the 'text input' component to be considered 'built' in Langflow. Ensure that the necessary dependencies for the 'text input' component are correctly set up. These include:

  1. TextComponent from langflow.base.io.text.
  2. MessageTextInput and Output from langflow.io.
  3. Message from langflow.schema.message [1].

Additionally, there are known limitations when connecting 'text input' to 'chat input'. If you pass an input_value to the chat input, you cannot pass a tweak with the same name, and the same applies to the text input. This is enforced by the validate_input_and_tweaks function, which raises an InvalidChatInputError if these conditions are violated [2].

Make sure that these conditions are not being violated in your setup. If the issue persists, you might want to check the logs page in Langflow for any additional debug information that could help diagnose the problem [3].

To continue talking to Dosu, mention @dosu.

@lkalaivanan
Copy link

I am getting same error, When I tried to connect Text input to sender name in chat input.

langflow Version : 1.1.0

Screen shot:

Screenshot 2024-11-18 162840

Attaching exception LOg :
exception.log

@ogabrielluiz ogabrielluiz self-assigned this Nov 18, 2024
@ogabrielluiz
Copy link
Contributor

Hey @SavvySupport

I'll look into this one and give you a feedback asap.

@ogabrielluiz
Copy link
Contributor

Should be out in our next minor release. Sorry for this.

@lkalaivanan
Copy link

@ogabrielluiz @SavvySupport When will be the release available with this fix ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants