Closed aquadeve closed 11 months ago
You just don't have access to that character, it's not a wrapper error
You just don't have access to that character, it's not a wrapper error
Why it doesn't have access. Is there a way to fix that? I'm having this problem too but I especially need that character.
It just doesn't, they don't give you full access to the database either, there's no explaining to be done, you can try to create your own character that has the same attributes (like name, description, greeting, etc.)
in client = PyCAI('TOKEN')
you should set TOKEN
value
Code:
from characterai import PyCAI
client = PyCAI('TOKEN')
while True: message = input('You: ')
You: hello fellow hows your day Traceback (most recent call last): File "C:\Users\Administrator\Downloads\Consoles\XboxOne\A.py", line 8, in
data = client.chat.send_message('92i0UeYAM6hKG1ojgoprsR4MwStyZfrHS8qDufRWo3A', message)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\characterai\characterai.py", line 383, in send_message
info = PostResponse(
^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\characterai\characterai.py", line 82, in PostResponse
raise errors.ServerError(response.status_text)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
characterai.errors.ServerError: Unauthorized