open-webui / pipelines

Pipelines: Versatile, UI-Agnostic OpenAI-Compatible Plugin Framework
MIT License
648 stars 176 forks source link

Question: How to design a Pipeline for Displaying Matplotlib/Seaborn Charts in Open WebUI #140

Closed abhishek-ch closed 1 month ago

abhishek-ch commented 2 months ago

I want to create a pipeline that generates matplotlib or seaborn charts and displays them using Open WebUI. Currently, the Tool only supports returning strings. How can I design a pipeline that allows Open WebUI to display these plots?

justinh-rahb commented 1 month ago

Use Files API, upload artifacts, get URL for file, insert URL into markdown image tag ?

abhishek-ch commented 1 month ago

so if I used the output as markdown image, open-webui will display it ?