Drevz

Results 16 comments of Drevz

You should update your Python to at least 3.10

Hi, try this: ```python client = PyAsyncCAI('CHARACTER_AI_TOKEN') async with client.connect() as chat2: #create your new chat here... ``` See [the source](https://github.com/kramcat/CharacterAI/blob/main/characterai/pyasynccai.py#L90) for more details

Could you share your code and goal so we can understand your issue better?

Did you use the correct user id? Are you the owner of the character? If not, is the character public? Edit: I have fixed a few mistake in your code:...

It looks like there are some misunderstood things here, so I think I should note something. The error occurred because the server's response to the API request wasn't JSON; probably...

>Also, it seems that CharacterAI is using CloudFlare now? Could that be interfering with the code? @jynn12 As long as you don't spam requests, imo :v

>@Karvp Nah, the same code works on other characters, but not on the one I am using. Its chat and not chat2 btw Seems tricky. Try inspecting the code 😄...

@AaronJohnson02 In your case, just check ur token

Sorry, but is this related to characterai?

I know it's quite late but still hope this helpful to someone. The history id is the value returned when you call `get_chat()` below a key named 'external_id'. You can...