Open wdrink opened 5 months ago
Hi @wangjk666
Thanks for opening this issue, I will take a look and follow up later
Many thanks for your help, and looking forward to your reply.
Hi @wangjk666
I can't seem to be able to reproduce your issue. Can you provide some additional context?
Here is the error:
line 159, in main
response = await sydney.ask(this_prompt, attachment=f"xxx")
File "xxx/sydney/sydney.py", line 516, in ask
async for response, suggested_responses in self._ask(
File "xxx/sydney/sydney.py", line 356, in _ask
attachment_info = await self._upload_attachment(attachment)
File "xxx/sydney.py", line 297, in _upload_attachment
raise ImageUploadException(
sydney.exceptions.ImageUploadException: Failed to upload image, received status: 400
Update:
Even if I use sydney without uploading an attachment, I will receive the following error:
sydney.exceptions.NoResponseException: No response was returned
I have made some experiments, and in short 800 kB seems to be the limit in size. Random files, ls -l each:
762230 Rock and roll is devil music.png
[1]: https://www.grimoireofhorror.com/the-banshee/the-devil-in-music/ "" [2]: https://www.flickr.com/photos/94086509@N00/45756734121/ "" [3]: https://www.pinterest.com/pin/jungle-music-in-2023--738027457706308193/ "" [4]: https://www.pinterest.com/pin/687080486914165278/ "" [5]: https://www.reddit.com/r/PropagandaPosters/comments/qtag31/rock_and_roll_the_devils_music_usa_1950s/ ""
The image you sent is a poster with a vintage appearance. The poster warns the viewer to beware of the hypnotic rhythm of rock'n'roll music, associating it with a path of sin and self-destruction leading to eternal damnation. The text on the poster reads "ROCK'n'ROLL IS THE DEVIL'S MUSIC!" in bold letters. The intricate artwork at the top features dark, swirling designs and a skull. The bottom of the poster has an illustration of three individuals in an old-fashioned car seemingly plunging into flames. The OCR text on the poster reads "ROCK'n'ROLL IS THE DEVIL'S MUSIC! BEWARE the hypnotic voodoo rhythm, a reckless dance down the Devils road of sin and self-destruction. leading youth to eternal damnation in the fiery depths of hell!" [^1^][1] [^2^][2] [^3^][3]
852813 - Spiegelman's New Yorker cover cartoon of March 8, 1999 Police cartoon.png
But when saved to jpg and lower size: 384254 - Spiegelman's New Yorker cover cartoon of March 8, 1999 Police cartoon2.jpg
[1]: https://www.pinterest.com/pin/468867011190281773/ "" [2]: https://time.com/3847691/art-spiegelman-social-commentary-cartoons/ "" [3]: https://www.meremart.com/New-Yorker--March-8-1999 "" [4]: https://www.pinterest.de/zeldman/art-spiegelman/ "" [5]: https://singout.org/american-skin-41-shots/ ""
The image you sent is a cover of "The New Yorker" magazine dated March 8, 1999. It depicts a cartoon of a police officer aiming at a shooting gallery with targets on silhouetted figures and the backdrop of city buildings. The gallery is filled with stuffed animal prizes. The magazine cover is colorful and contains various elements. At the top, there's text indicating the price as $3.00 and the title "THE NEW YORKER". A large word "SHOOTING" is prominently displayed in red letters. A cartoon police officer in blue uniform is illustrated aiming his gun at silhouetted figures with targets on them. Behind the silhouetted figures are gray city buildings. Above the officer, there's a shooting gallery filled with stuffed animal prizes resembling dogs and cats. At the bottom right corner, “41 SHOTS” is written in red [^1^][1].
resize your image
I failed to use the attachment with the above error, anyone has some ideas? Thanks