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

(dart_openai 5.1.0) Broken OpenAIChatCompletionChoiceMessageContentItemModel.imageUrl #191

Open
gmpassos opened this issue Aug 23, 2024 · 5 comments

Comments

@gmpassos
Copy link

gmpassos commented Aug 23, 2024

The latest published version (dart_openai: 5.1.0) is incompatible with the API due to an invalid JSON payload for a chat completion message with content of type "image_url".

It appears that this bug has already been fixed in the current main branch:

"image_url": {"url": "data:image/jpeg;base64,${imageBase64}"}

Could you please publish a new version? Best regards.

If you need any help with this package, let me know.

@gmpassos
Copy link
Author

FYI @anasfik

@Intelliabb
Copy link

Yup. Same issue. When are you planning on pushing this fix out?

@Muzammil-Bit
Copy link

Any update on this or work around?

@franboladoruiz
Copy link

Use openai_dart package instead. It's aligned with the latest OpenAI API.

@gmpassos
Copy link
Author

@anasfik any update?

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

4 participants