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

Need to add media file upload for posting tweets with image from imageGenerationPlugin. Currently only discord has this implemented #970

Open
Endytech opened this issue Dec 10, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@Endytech
Copy link

Need add media upload to twitter and later to telegram. And implement Eliza's common agent function "processAttachments" for imageGenerationPlugin.

This agent has media upload
https://github.com/ai16z/agent-twitter-client

I use twitter and telegram and in Character "modelProvider": "heurist", "secrets": { "HEURIST_API_KEY": "xxx" }
},
I wrote "Generate an AI image from text: cats on street" and get only text "..."
image
But file uploaded and logs say same
image
image

Here we get attachments.
imageGenerationPlugin
image
https://github.com/ai16z/eliza/blob/622000ef19fc7805f1f8d3d86530d883353ac01f/packages/plugin-image-generation/src/index.ts#L200

Must be implemented function "processAttachments" for Twitter and Telegram.
https://github.com/ai16z/eliza/blob/main/docs/docs/packages/clients.md#message-handling
image

"processAttachments" implemented in Discord
https://github.com/ai16z/eliza/blob/622000ef19fc7805f1f8d3d86530d883353ac01f/packages/client-discord/src/attachments.ts#L67
image

And current agents may post only text, only Discord can images, audio and other

@Endytech Endytech added the enhancement New feature or request label Dec 10, 2024
@Endytech
Copy link
Author

Endytech commented Dec 10, 2024

There was already a similar discussion on the discord channel
https://discord.com/channels/1253563208833433701/1300025221834739744/1313264352983253084
image

@tcm390
Copy link
Collaborator

tcm390 commented Dec 19, 2024

Hi @Endytech, there is a fix in #1220 that is already merged into develop branch.
Kindly try that and give feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants