create_room
Creating a room with multiple characters
client.chat.rate('CHAR', RATE)from characterai import PyCAI
client = PyCAI('TOKEN')
characters = [
{'value': 'CHAR'},
{'value': 'CHAR'}
]
chat = client.chat.create_room(
characters, 'NAME'
)
print(chat)import asyncio
from characterai import PyAsyncCAI
async def main():
client = PyAsyncCAI('TOKEN')
characters = [
{'value': 'CHAR'},
{'value': 'CHAR'}
]
chat = await client.chat.create_room(
characters, 'NAME'
)
print(chat)
asyncio.run(main())name [str]
characters [str]
topic [str]
token [str] (optional)
Last updated