Xtr4F / PyCharacterAI

An unofficial Python api wrapper for character.ai
https://character.ai/
MIT License
37 stars 9 forks source link

Could not create a new chat? #1

Closed KnightCoder248 closed 2 months ago

KnightCoder248 commented 6 months ago

This repository may seem old but I'm currently working on to integrate this api onto a discord bot somehow. I'm also using replit.com as the platform for it to run. Here's the error log:

Traceback (most recent call last): File "/home/runner/PyCharacterAI-1/.pythonlibs/lib/python3.10/site-packages/discord/client.py", line 441, in _run_event await coro(*args, **kwargs) File "/home/runner/PyCharacterAI-1/main.py", line 45, in on_ready await setup_character_ai() File "/home/runner/PyCharacterAI-1/main.py", line 40, in setup_character_ai chat_session = await client.create_or_continue_chat(character_id) File "/home/runner/PyCharacterAI-1/PyCharacterAI/client.py", line 285, in create_or_continue_chat raise Exception('Could not create a new chat.') Exception: Could not create a new chat.

Xtr4F commented 2 months ago

Hi. At the time this issue was created, the library was very outdated. A lot of things have changed in the api over the last year, so I've released a new version 2.0 that fixes many bugs and includes many new features, but unfortunately breaks backwards compatibility. If you are still interested in this project, you can check out the new version and read the documentation.