poe-platform / fastapi_poe

A helper library for writing Poe API bots using FastAPI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to Allow URLs and Attachments to my Bot

abdfnx opened this issue · comments

commented

Hi @JelleZijlstra, How I can use the message attachments like URLs or files to my code ?

For sending files to the bot, I added an extension to the protocol recently: poe-platform/documentation@d67fb15. However, it is not implemented on our side yet, I'm hoping to do that soon.

commented

For sending files to the bot, I added an extension to the protocol recently: poe-platform/documentation@d67fb15. However, it is not implemented on our side yet, I'm hoping to do that soon.

and what about URLs ?

Users can just type in URLs in the markdown input, no special support needed.

commented

Web capture_6-8-2023_172825_poe com

Look

That's something you should be able to do in your own bot. In your code, you can recognize that there is a URL and fetch the data from the Internet.

commented

Can you give me an example code ?

commented

Web capture_6-8-2023_17388_poe com

I want it to be like this

Sorry I can't give example code right now. We may add support for URL fetching to API bots on our side in the future.

Sorry I can't give example code right now. We may add support for URL fetching to API bots on our side in the future.

Is it supported now? @JelleZijlstra