Chainlit / chainlit

Build Conversational AI in minutes ⚡️
https://docs.chainlit.io
Apache License 2.0
6.67k stars 860 forks source link

Upload File button in front-end UI, just like OpenAI code interpretor #198

Closed gxagxagxa closed 1 year ago

gxagxagxa commented 1 year ago

Inspired by OpenAI code interpreter, I wanna implement my own version, which allow user directly upload some files.

By reading the docs, Chainlit has a AskFileMessage for users to upload files. However, It's need User input some command text to activate server send AskFileMessage,and it's not quite intuitive.

If it's possible to add a upload file button in front-end UI, and also a @cl.on_file_uploaded_callback decorator. (kind of like Chainlit Actions) 企业微信截图_16898557031759

willydouhard commented 1 year ago

Yes, this is an opened issue. We are open to contributions to speed up the release, otherwise it will probably be added in august.

gxagxagxa commented 1 year ago

Sounds great! Can't wait for the new release!

willydouhard commented 1 year ago

304