vsakkas / sydney.py

Python Client for Copilot (formerly named Bing Chat), also known as Sydney.
MIT License
263 stars 37 forks source link

Adding “Upload file” support #161

Open Newayys opened 6 months ago

ns-ffx commented 6 months ago

That would be amazing for our ongoing project! Does anybody know if this feature is planned?

vsakkas commented 4 months ago

Hi @ns-ffx @Newayys You should be able to provide a file using the attachment parameter. A short example:

 async with SydneyClient() as sydney:
            response = await sydney.ask(
                "What does this image show?", attachment=file_path
            )