kirillkuzin / cyberpunk2077ai

🤖CyberAI is designed to bridge the world of Cyberpunk 2077 and the power of OpenAI's AI technology.
MIT License
31 stars 0 forks source link

Improve suggestions #1

Open donk7413 opened 1 year ago

donk7413 commented 1 year ago

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")

kirillkuzin commented 1 year ago

Hi! I appreciate your suggestion. Yes, I'll add support of keep and get history by identifier soon.

donk7413 commented 1 year ago

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 )

kirillkuzin commented 1 year ago

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?

donk7413 commented 1 year ago

You can look how radioext does for playing sound.

https://github.com/justarandomguyintheinternet/CP77_radioExt/releases

kirillkuzin commented 1 year ago

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

donk7413 commented 1 year ago

Perfect ! Will try it today and give you feedback if there is ! Thanks for the speed !

donk7413 commented 1 year ago

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);