-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Description
Describe the bug
When a tool is used with a Mistral LLM, the following error is encountered:
Ran into this error: Request failed: Bad request (400): Unexpected role 'user' after role 'tool'.
This is a common error everyone encounters when implementing support for Mistral AI after OpenAI support is already implemented.
The fix is simple: there must be another request between the tool request and the next user request.
To Reproduce
Steps to reproduce the behavior:
- Configure Mistra AI as the provider
- Start a goose session
- Make the agent use a tool
- Send another message to the agent
Expected behavior
No HTTP error. Agent responds.
Screenshots
If applicable, add screenshots to help explain your problem.
Please provide the following information
- OS & Arch: Debian AMD64
- Interface: CLI
- Version: [e.g. v1.0.2]
- Extensions enabled: [e.g. Computer Controller, Figma]
- Provider & Model: [e.g. Google – gemini-1.5-pro]
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
No labels