FlowiseAI / Flowise

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

[BUG] Problem updating YAML File in OpenAPI Chain #2833

Open materod-upv opened 2 months ago

materod-upv commented 2 months ago

Describe the bug When I modify the YAML file and upload it again to the OpenAPI Chain node, the changes are not refreshed even if I save it. I have to delete the node and recreate it for the updates to take effect.

To Reproduce

  1. Create a new flow with a Open API Chain node and a ChatOpenAI with gpt-4 as a model.
  2. Upload a yaml file with the API definition. Press save button and try it.
  3. Modify your yaml file, with a new endopoint (function).
  4. Upload the modified yaml file again and press save button.
  5. Test the new endpoint.

Expected behavior The agent must know the new endpoint and call it when it is necessary. However, it

Screenshots When I ask the chat a question related to the new endpoint, it should make the API call. However, it seems that it doesn't find it and never calls it. It's like the tool list hasn't been updated.

Flow Monnegre - Azure OpenAI Chatflow.json

Setup

NOGIT007 commented 1 month ago

It would also be nice to see the yaml in the OpenAPI Chain, as for now it's gone visually. Plus when you make a copy/duplicate of the flow you know what the yaml contain. Plus you will have it as an extra backup if the yaml were included in the Flowise database.