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 · 9 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?

@MbBrainz
Copy link

MbBrainz commented Oct 1, 2024

Ive created a fix and pr for this here: #198

@MbBrainz
Copy link

MbBrainz commented Oct 4, 2024

I think you guys should depricate this package in favor of this @franboladoruiz @franboladoruiz

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

@franboladoruiz
Copy link

I am not sure why OpenAI only lists the dart_openai package in their Community Libraries section. I guess a lot of people like me start using dart_openai because of this, only to find out later that it's not aligned with the latest API, and then have to migrate the integration to openai_dart.

@hukumsingh87
Copy link

#198 is correct fix. @anasfik you should merge it and release it as new version.

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

6 participants