Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions characterai/aiocai/methods/chat2.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ async def new_chat(
Returns:
:obj:`~characterai.types.chat2.BotAnswer`
"""
chat_id = str(uuid.uuid4()) or chat_id
chat_id = chat_id or uuid.uuid4().hex

if isinstance(creator_id, int):
creator_id = str(creator_id)
Expand Down Expand Up @@ -460,4 +460,4 @@ async def __aexit__(self, *args):
await self.close()

async def close(self):
return await self.ws.close()
return await self.ws.close()