-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Image Description Service, unsupported image #1694
Comments
What is the version of ElizaOS you running ? Any other detail about the image ? |
@AIFlowML You can reproduce by tagging your agent on twitter, and add any image into tweet to trigger. I use develop branch. |
@denizekiz is the issue resolved by #1696? |
@tcm390 it only resolved when I call directly the service. It still throw error if called with process actions in interaction.ts. Process action loop sends the url of the tweet to openai instead of url of image |
Thanks for the clarification I will check it 🙏 |
Unfortunately no. In interaction.ts message.url is tweet url. So it passed to ImageDescriptionService when agent decide to take "describeimage" action. Need to pass photo url so that it can handle.
|
I see. Okay, I will look into it. Thanks for the clarification! |
Working on it. |
Client Twitter: - Modified base.ts and post.ts to handle image descriptions - Added comprehensive test suite with real images Plugin Node: - Enhanced image.ts with format validation - Added real image tests with multiple formats
@AIFlowML the message in process action only takes tweet's url, not image url, which creates problem once its called with processaction logic called from runtime in twitter client. Once agent selects describe image and Runtime.processaction tries calling imagedescription service in twitter client's interactions.ts, it gets tweet url instead of tweet photo urls. |
Seems like llm infer wrong url |
I submitted a PR yesterday and tested the imagedescription + fixed the twitter that was using it it also now have logging and error handling so in case we know what is wrong. |
Probably fixed by #1756 |
Describe the bug
Getting unsupported image error from openai api. Despite image being a jpg.
To Reproduce
"develop" branch
pnpm start
Run twitter client
tag your agent with a photo on twitter/x
Expected behavior
⛔ ERRORS
OpenAI API error:
400
{
"error": {
"message": "You uploaded an unsupported image. Please make sure your image has of one the following formats: ['png', 'jpeg', 'gif', 'webp'].",
"type": "invalid_request_error",
"param": null,
"code": "invalid_image_format"
}
}
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: