This should help avoid the UnicodeDecodeError: 'utf-8' codec can't decode byte 0xeb in position 0: unexpected end of data error, which happens when calling the chat function before uploading the image. Instead, in the terminal, a message will inform that the image still needs to be uploaded.
This should help avoid the
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xeb in position 0: unexpected end of data
error, which happens when calling thechat
function before uploading the image. Instead, in the terminal, a message will inform that the image still needs to be uploaded.