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

this message with role 'tool' contains an image URL. #7700

Open
imeDevelopers opened this issue Apr 4, 2025 · 3 comments
Open

this message with role 'tool' contains an image URL. #7700

imeDevelopers opened this issue Apr 4, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@imeDevelopers
Copy link

BadRequestError: litellm.BadRequestError: OpenAIException - Invalid 'messages[6]'. Image URLs are only allowed for messages with role 'user', but this message with role 'tool' contains an image URL.

@imeDevelopers imeDevelopers changed the title his message with role 'tool' contains an image URL. this message with role 'tool' contains an image URL. Apr 4, 2025
@imeDevelopers
Copy link
Author

Use case, the error happened directly after this request/input:

I need you to login to "https://www.example.com/login" with these credentials username "username123", password "password123" and visit the user profile and give me the description of it.

@imeDevelopers
Copy link
Author

this was just a test of the tool abilities.

@enyst
Copy link
Collaborator

enyst commented Apr 4, 2025

Thank you for the report! This sounds like a litellm issue actually, litellm converts the role 'tool' to 'user' for the LLMs that need it. What LLM was it?

It might be good to file a report for it to litellm.

@mamoodi mamoodi added the bug Something isn't working label Apr 4, 2025
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

3 participants