langflow icon indicating copy to clipboard operation
langflow copied to clipboard

API: input_value is ignored and not passed to Chat Input

Open radek3911 opened this issue 2 years ago • 1 comments

Describe the bug When calling API endpoint run/<flow_id> the input_value is suggested by code generator in Langflow UI, however after submitting request to the endpoint the input_value seems to be ignored and not passed into the Chat input node.

Version

  • Langflow v1.0.0a23

To Reproduce Steps to reproduce the behavior:

  1. Use template for flow Document Q&A image
  2. Go to the API section that will give you example on how to call the API.
  3. Observe that in cURL and Python API examples input_value is suggested to be filled for prompt. image
  4. Attempt to call the API with input_value: image

Observe that the prompt gets ignored.

Additional context When using tweak on chat input, the flow behaves correctly: image

radek3911 avatar Apr 17 '24 22:04 radek3911

Hey @radek3911

How are you?

Definitely a bug.

I'll get to it ASAP.

Thanks!

ogabrielluiz avatar Apr 18 '24 13:04 ogabrielluiz

Hey @radek3911

How are you?

Definitely a bug.

I'll get to it ASAP.

Thanks!

Hello thank you for a Quick fix! I noticed you fixed 2 birds with one Stone i also experienced the issue with stream=false getting ignored.

Thank you very much :) Have a nice day

radek3911 avatar Apr 18 '24 15:04 radek3911