Skip to content

[BUG] Invalid parameter: messages with role 'tool' #2254

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

Closed
Step-by-Step-technology opened this issue Apr 15, 2025 · 1 comment
Closed

[BUG] Invalid parameter: messages with role 'tool' #2254

Step-by-Step-technology opened this issue Apr 15, 2025 · 1 comment

Comments

@Step-by-Step-technology

Hello,
Under windows since the update to version 1.11.10 all requests if I enable "web browsing" result in this error (see capture):
{
"error": {
"message": "Invalid parameter: messages with role 'tool' must be a response to a preceeding message with 'tool_calls'. ",
"type": "invalid_request_error",
"param": "messages.[2].role",
"code": null
}
}
I use an OpenAI chatgpt4o-mini API and the BING search engine.
I have no problems if I go back to version 1.11.8

Thanks for your work.

Image
@themez
Copy link
Contributor

themez commented Apr 15, 2025

Thanks for reporting, it's fixed in v1.11.11

@themez themez closed this as completed Apr 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants