🔑 Values
To use the library, you need to know how to get some values. Also, some values will be described here, it is not necessary to know them, I decided to explain them for general understanding
Last updated
To use the library, you need to know how to get some values. Also, some values will be described here, it is not necessary to know them, I decided to explain them for general understanding
Last updated
DO NOT SHARE IT
The token is needed for authorization and operation of requests from your account. There are 3 ways to get a token:
Local Storage
Open DevTools in your browser
Go to Storage -> Local Storage -> char_token
Copy value
Console
Open DevTools in your browser
Go to Console tab and enter this code:
JSON.parse(localStorage.getItem('char_token')).value
Tampermonkey
Download userscript
Go to cAI Profile Settings and look down
Unique ID for characters
Open the chat page with the character
Copy char
value from URL
Unique ID for character history
if you look at the responce of character.get_histories()
, then you will see that each story has its own external_id
The ID of the feed, I don't know where it comes from and how to get it. Also, community feed have their topic_external_id, you can get them in post.get_topics()
It is also a character identifier. It would be more correct to call it the nickname of the character
Your account ID. Needed for functions with chat2, stored in your account information