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] Chat with image example show error image_url should be object but receive string #3946

Open
bobogogo1990 opened this issue Jan 30, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@bobogogo1990
Copy link
Contributor

Describe the bug
OpenAI API hits BadRequestError: Error code: 400 - {'error': {'message': "Invalid type for 'messages[1].content[0].image_url': expected an object, but got a string instead.", 'type': 'invalid_request_error', 'param': 'messages[1].content[0].image_url', 'code': 'invalid_type'}}

How To Reproduce the bug
Steps to reproduce the behavior, how frequent can you experience the bug:

  1. use the lastest promptflow promptflow-tools to run chat-with-image
  2. windows 12, python 3.10.16, promptflow-tools 1.4.0 promptflow 1.17.2

Expected behavior
answer "How many colors can you see?"

Screenshots

Image

Running Information(please complete the following information):

  • Promptflow Package Version using pf -v:

Image

  • Operating System: [e.g. Ubuntu 20.04, Windows 11] windows 12
  • Python Version using python --version: 3.10.16

Additional context
Add any other context about the problem here.

@bobogogo1990 bobogogo1990 added the bug Something isn't working label Jan 30, 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

1 participant