You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Image data loading currently only classifies images as "animated GIFs" and "everything else", which fails to handle a number of input image cases since the APIs support mostly JPEG and PNG
Hello @ae9is! Welcome to the elizaOS community. Thank you for opening your first issue; we appreciate your contribution. You are now an elizaOS contributor!
A few things are broken in
plugin-node
related to image description:gifFrames
fails), and also uses an unmaintained dependency with vulnerabilitieseliza/packages/plugin-node/src/services/image.ts
Lines 339 to 346 in 5076588
ref: https://github.com/benwiley4000/gif-frames/
eliza/packages/plugin-node/src/services/image.ts
Lines 113 to 122 in 5076588
RawImage.fromURL
does not support thatRawImage.fromURL
:https://github.com/huggingface/transformers.js/blob/e1753ac0ff363183552bbc35488937e0d42c9cf8/src/utils/image.js#L147-L153
Which calls
getFile
, which does not support data URLs:https://github.com/huggingface/transformers.js/blob/e1753ac0ff363183552bbc35488937e0d42c9cf8/src/utils/hub.js#L190-L193
eliza/packages/plugin-node/src/services/image.ts
Lines 311 to 315 in fd35fd9
{ object: fileLocation }
or{ fileLocation }
eliza/packages/plugin-node/src/actions/describe-image.ts
Lines 38 to 51 in fd35fd9
eliza/packages/plugin-node/src/services/image.ts
Lines 357 to 369 in fd35fd9
ref:
https://platform.openai.com/docs/guides/vision#what-type-of-files-can-i-upload
https://firebase.google.com/docs/vertex-ai/input-file-requirements#images-mime-types
PR coming shortly.
The text was updated successfully, but these errors were encountered: