realcoloride / node_characterai

Unofficial Character AI wrapper for node.
https://beta.character.ai/
346 stars 71 forks source link

Fix no chat history detection (createOrContinueChat issue) #160

Closed then77 closed 7 months ago

then77 commented 7 months ago

Recently tried to create a new chat (not existing), and find some weird error. image

After searching for a while, it seems like another miss in the code where it should attempt to create new one, but instead use a non existing chat because of an unhandled response. image

Seems like a simple fix, since modifying to add that unhandled response seems to work. image image

then77 commented 7 months ago

Also found this similar issue (probably same root cause) https://github.com/realcoloride/node_characterai/issues/156

realcoloride commented 7 months ago

Will investigate, check and if good merge. Thanks for your contribution

realcoloride commented 7 months ago

Hey there! Upon testing and checking, everything seems OK. Thanks!