tool result must be preceeded by a tool call
Describe the bug tool result must be preceeded by a tool call
Expected behavior A clear and concise description of what you expected to happen.
Screenshots
Please provide following information:
- OS & Arch: [e.g. Ubuntu 22.04 x86]
- Interface: UI
- Version: [e.g. v1.0.2]
- Extensions enabled: tavily
- Provider & Model: Google
Additional context Add any other context about the problem here.
orginally posted in discord: https://discord.com/channels/1287729918100246654/1334153060447944789/1334164125688791074
We've seen this before and it is related to the state management in useChat. There are likely some edge cases still remaining. This fixed one class of errors for example #859
@salman1993 @baxen do you have any examples to repro this? I haven't seen this in a while and it probably got fixed along the way
Seems to be fixed in the latest