CharacterAI
CharacterAI copied to clipboard
Unofficial Python API for character.ai
How To Fix Im try to made a API ( used flask ) for self, but i am request 3 and Show This Erros ``` 114.10.142.9 - - [16/Dec/2023 02:35:34]...
Hello, When I'm trying to create a new chat, I got this error : `AttributeError: 'NoneType' object has no attribute 'send'`  We can see in pyaisynccai.py:31 that the ws...
Hello, I am currently trying to run the example code with my own token and character id, however there seems to be a little problem: ```python from characterai import PyCAI...
can anyone help me find the history_id in the old interface.
``` char = input("input char: ") chat = client.chat.get_chat(char) #
from flask import Flask, jsonify, request from characterai import PyCAI app = Flask(__name__) @app.route('/', methods=['GET', 'POST']) def home(): if request.method == 'GET': data = "hello world" return jsonify({'data': data}) @app.route('/chat/',...
Code: ```py from characterai import PyCAI client = PyCAI('') char = input('Enter CHAR: ') # Save tgt and history_external_id # to avoid making a lot of requests chat = client.chat.get_chat(char)...
I've tried this example code and it doesn't seem to function: ``` from characterai import PyCAI client = PyCAI('TOKEN') char = input('Enter CHAR: ') chat = client.chat.get_chat(char) participants = chat['participants']...
Its beautiful but I couldn't get it to work at all. I think you need to include a example script that actually works instead of just posting pieces of code...
Sorry if I'm being a bit dumb here. What is the purpose of the Async functions? I thought they would get me a character stream as the server returns it....