Open donk7413 opened 1 year ago
Hi! I appreciate your suggestion. Yes, I'll add support of keep and get history by identifier soon.
Thanks ! Such a great mod, I started implent it in cyberscript (I'm the author of it) and i'm already able to make dialog and mission ! Nice job ! A version for eleven labs is planned ? (generate sound and play it from API )
I've been looking into eleven labs, and, as far as I can understand, to generate and play sounds from their API, we need to find an existing way to play sounds without restarting the game. Do you know this one?
You can look how radioext does for playing sound.
https://github.com/justarandomguyintheinternet/CP77_radioExt/releases
By the way, I released the new version where you can get answers by identifier https://github.com/kirillkuzin/cyberpunk2077ai/releases/tag/v0.0.2
Perfect ! Will try it today and give you feedback if there is ! Thanks for the speed !
perfect ! One last suggest : Boolean in request to send the whole history or not, so it doesn't take a lot of token if you don't want it.
Example : ScheduleChatCompletionRequest("your_custom_id", {{"User", "My name is V"}, {"User", "How are you and what's my name?"}},true);
Use an dictionary that have identifier as key and value is item with request field and answer field.
So using it in cet will be like
ScheduleChatCompletionRequest("my identifier",{{"User", "You are being launched in the videogame Cyberpunk2077. How are you feeling?"}});
GetLastAnswerContent("my identifier") GetLastRequestContent("my identifier")