AlizerUncaged / desktop-waifu

Desktop Waifu!
337 stars 48 forks source link

Can't use CharacterAI_KEY correctly, start.bat logged me as guest but in the .env I put the access_token #172

Closed misaki1301 closed 1 year ago

misaki1301 commented 1 year ago

I having issues related to the script start.bat with character.ai. It doesn't recognize the token of access_token image maybe the API changed again?

saipheblue commented 1 year ago

I solved this by navigating to character_ai folder and opened file runner.js in vscode and changed

await characterAI.authenticateAsGuest();

to

await client.authenticateWithToken("YOUR TOKEN")

And its working again for me, hope it helps

misaki1301 commented 1 year ago

thanks, kinda fixed reading the docs of the node wrapper of character.ai and can confirm that your solution works, hope we can make some PR to update the base code of this project