CharacterAI icon indicating copy to clipboard operation
CharacterAI copied to clipboard

Unofficial Python API for character.ai

Results 37 CharacterAI issues
Sort by recently updated
recently updated
newest added

This is my code: ``` from characterai import aiocai import asyncio from datetime import datetime async def main(): char = input('CHAR ID: ') client = aiocai.Client('a9ec003a613b2c639b415062701827c1fd2d2d24') me = await client.get_me()...

Calling get_char() results in a ValidationError because of None values in some fields. ``` python import asyncio from characterai import aiocai def get_client(): token = config.get("AI", "cai_api", fallback=None) if not...

I was using doing: ``` class cAI(): def __init__(self, character_name): self.character_name = character_name self.client = aiocai.Client('****') async def Find_CharacterKey(self): try: character_key = await self.client.search(self.character_name) return character_key[0].external_id except Exception as e:...

Fixed the Error getting AI response: BaseEve ntLoop.create_connection() got an unexpected keyword argument 'extra_headers'

Missing fields 'songs', 'participant__user__username' and 'voice_id' when calling for create_char method. Added default values for these fields in Character class (character.py)

We need group chat support asap 😭😭

Hello, I have tried to use pycai's (not AIOCai) connect() on another computer with [using my Guilded bot.](https://git.swee.codes/swee/sweeBot4Guilded) though on another computer, I get the error message here ![image](https://github.com/user-attachments/assets/22e60297-7192-4503-b524-df267e223c87) (Note:...