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

Anyway to obtain media files from historical events by matrix-commander with help of an EventId? #173

Open
v1-valux opened this issue Apr 29, 2024 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@v1-valux
Copy link

v1-valux commented Apr 29, 2024

Fist of all - thank you for this great tool!

I've been using it quite some time now to prompt my LLMs over Matrix using prefixes.
I was using matrix-eno-bot before but lately I wanted to extend some features myself.
My plan is to reply to image / audio files to send them to AI tools like whisper or LLaVA for inferencing.

But from my understanding Eno is not able to download media natively so I switched over to MC to make that possible.

I glued some code together and tried to solve it via downloading and saving media in a media folder.
The downside of my current solution is that all media needs to be downloaded by the bot first for it to process it later.

So one possible solution I thought of, was making an Rest-API Call via MC to obtain media file URLs before downloading them, processing them, and delete them afterwards, to make it more lightweight..

Unfortunately, the event that I can obtain by using the following command, is encrypted:

matrix-commander --no-ssl --store ./store --rest get '' https://matrix.exmaple.com_matrix/client/v3/rooms/$ROOM_ID/event/$EVENT_ID?access_token='$ACCESS_TOKEN'

Is there any way to add this functionality to MC or similarly are we able to decrypt a historical event to obtain a media file / the mxc-url otherwise via Rest API?

Best Regards
o/

@8go 8go added enhancement New feature or request help wanted Extra attention is needed labels May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants