FlowiseAI / Flowise

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

[BUG] #3540

Open dentro-innovation opened 1 day ago

dentro-innovation commented 1 day ago

Describe the bug Can't get a simple flow with sequential agents to work when using ChatAnthropic. It does work with ChatOpenai and ChatMistral.

But with ChatAnthropic (any model) the user message seems to be inserted incorrectly into the condition agent, and the agent afterwards fails with Error buildAgentGraph - Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages: at least one message is required"}}

To Reproduce Connect a start node to a condition agent and then to an agent. All powered by ChatAnthropic

Expected behavior It runs successfully

Screenshots image

Flow

Langsmith Traces:

Failed run with ChatAnthropic: https://eu.smith.langchain.com/public/4c001323-d1c2-461b-9a44-41d3fc2bebd5/r

Successful run with ChatOpenai: https://eu.smith.langchain.com/public/37096926-8a79-4d91-b345-81071ecab410/r

Additional context Happens on both Flowise 2.1.3 and 2.1.5