FlowiseAI / Flowise

Drag & drop UI to build your customized LLM flow
https://flowiseai.com
Apache License 2.0
31.52k stars 16.42k forks source link

[BUG] v2.1.4 Cannot override variables #3521

Open hans00 opened 4 hours ago

hans00 commented 4 hours ago

Describe the bug Cannot override variables, whatever security enabled or not.

To Reproduce Steps to reproduce the behavior:

  1. Import flow from old version
  2. Enable override for the variable
  3. Make request

Expected behavior

Override success

Screenshots If applicable, add screenshots to help explain your problem.

image image image

Flow If applicable, add exported flow in order to help replicating the problem.

Setup

Additional context Add any other context about the problem here.

HenryHengZJ commented 3 hours ago

Do you have a simple flow for me to test? are the variables used in custom tool or other places? chatflow or agentflow

hans00 commented 1 hour ago

ExportData.json

docker run -it --rm --name flowise -p 3000:3000 flowiseai/flowise

# Import data
# Go config, enable override value

curl http://localhost:3000/api/v1/prediction/479d9db3-9606-40e6-b78c-bd4405a87931 \
     -X POST \
     -d '{"question": "Hey, how are you?", "overrideConfig": {"vars":{"test":"overrided"}}}' \
     -H "Content-Type: application/json"

image

In console log, it shows the vars still original value.