TypeError: BaseEventLoop.create_connection() got an unexpected keyword argument 'extra_headers'
When run the examples:
from characterai import aiocai import asyncio
async def main(): char = "" client = aiocai.Client("") me = await client.get_me()
async with await client.connect() as chat:
new, answer = await chat.new_chat(
char, me.id
)
print(f'{answer.name}: {answer.text}')
while True:
text = input('YOU: ')
message = await chat.send_message(
char, new.chat_id, text
)
print(f'{message.name}: {message.text}')
asyncio.run(main())
I meet the following error:
Traceback (most recent call last):
File "/home/ubuntu/CBT3.0/character.ai/character_ai.py", line 49, in
Have the same problem. 😕
installing websockets==11.0.3 solved this issue.
how to fix?
how to fix?
installing websockets==11.0.3 solved this issue.
how to fix?
installing websockets==11.0.3 solved this issue.
thank you it wworks
Hey, i have installed websockets 11.0.3 but still have the issue, any idea ?
Hey, i have installed websockets 11.0.3 but still have the issue, any idea ?
My recommendation is using a venv so you don't encounter package incompability issues, the websockets to 11.0.3 solves the issue mainly.
why is this?use websockets 11.0.3 can :(