FireHead90544/craiyon.py

aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html; charset=utf-8', url=URL('https://api.craiyon.com/draw')

HumanBot000 opened this issue · 2 comments

generator = Craiyon()
        result = await generator.async_generate(prompt)
        print(result)
        image = result.images[0]
```

Is this my mistake or is https://api.craiyon.com/draw' down?

Hi, please update to a newer version of Craiyon.py.

The endpoint for Craiyon v2 was removed. The newest version of Craiyon.py uses Craiyon v3.

Run pip install -U craiyon.py to update the api wrapper to the latest version which supports the v3 model. The v2 endpoint is removed by craiyon.