Skip to content

Commit

Permalink
Concurrency example
Browse files Browse the repository at this point in the history
  • Loading branch information
realcoloride committed Apr 20, 2024
1 parent 848361a commit 5089995
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ await chat.sendAndAwaitResponse({
|๐Ÿ˜ฎ **Why are chromium processes opening?**|This is because as of currently, the simple fetching is broken and I use puppeteer (a chromium browser control library) to go around cloudflare's restrictions.|
|๐Ÿ‘ฅ **`authenticateAsGuest()` doesn't work**|See issue [#14](https://github.com/realcoloride/node_characterai/issues/14).|
|๐Ÿฆ’ **Hit the max amount of messages?**|Sadly, guest accounts only have a limited amount of messages before they get limited and forced to login. See below for more info ๐Ÿ‘‡|
|๐Ÿช **How to use an account to mass use the library?**|You can use **conversations**, a feature introduced in `1.0.0`, to assign to users and channels. **To reproduce a conversation, use OOC (out of character) to make the AI think you're with multiple people.** __See an example here:__ ![chrome_RDbmXXtFNl](https://user-images.githubusercontent.com/108619637/224778145-284dd89e-7960-499c-b0f0-0deca419c578.png)![chrome_BgF8crPvqC](https://user-images.githubusercontent.com/108619637/224778153-c2a42a26-c5f7-4148-9644-34353482833e.png) (Disclaimer: on some characters, their personality will make them ignore any OOC request).|
|๐Ÿช **How to use an account to mass use the library?**|You can use **conversations**, a feature introduced in `1.0.0`, to assign to users and channels. **To reproduce a conversation, use OOC (out of character) to make the AI think you're with multiple people.** __See an example here:__ ![chrome_RDbmXXtFNl](https://user-images.githubusercontent.com/108619637/224778145-284dd89e-7960-499c-b0f0-0deca419c578.png)![chrome_BgF8crPvqC](https://user-images.githubusercontent.com/108619637/224778153-c2a42a26-c5f7-4148-9644-34353482833e.png) (Disclaimer: on some characters, their personality will make them ignore any OOC request). |
|๐Ÿƒ **How do I avoid concurrency and crashes when using more than one request at a time?**|Check the solution found by @SeoulSKY [here](https://github.com/realcoloride/node_characterai/issues/157#issuecomment-2005709711) using `async-mutex`.|
|๐Ÿ“ฃ **Is this official?**|No, this project is made by a fan of the website and is unofficial. *To support the developers, please check out [their website](https://beta.character.ai)*.|
|๐Ÿ˜ฒ **Did something awesome with `node_characterai`?**|Please let me know!|
|โœ‰๏ธ **Want to contact me?**|See my profile|
Expand Down

0 comments on commit 5089995

Please sign in to comment.