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

[BUG] Anthropic Agentflow Not Working #3540

Open
dentro-innovation opened this issue Nov 20, 2024 · 0 comments
Open

[BUG] Anthropic Agentflow Not Working #3540

dentro-innovation opened this issue Nov 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@dentro-innovation
Copy link

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

@HenryHengZJ HenryHengZJ changed the title [BUG] [BUG] Anthropic Agentflow Not Working Nov 23, 2024
@HenryHengZJ HenryHengZJ added the bug Something isn't working label Nov 23, 2024
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

No branches or pull requests

2 participants