Other user's assetsAll the assets in this file belong to the author, or are from free-to-use modder's resources
Upload permissionYou can upload this file to other sites but you must credit me as the creator of the file
Modification permissionYou are allowed to modify my files and release bug fixes or improve on the features without permission from or credit to me
Conversion permissionYou can convert this file to work with other games as long as you credit me as the creator of the file
Asset use permissionYou are allowed to use the assets in this file without permission or crediting me
Asset use permission in mods/files that are being soldYou are allowed to use the assets in this file in mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou are allowed to earn Donation Points for your mods if they use my assets
Author notes
This author has not provided any additional notes regarding file permissions
File credits
This author has not credited anyone else in this file
In this version, I thoroughly changed all the functions. Now, there is a simple storage for conversation history, which can keep data for multiple chats, and you can access it by identifier.
Version 0.0.1
The first version
Welcome to the CyberAI project!
This plugin for Cyberpunk 2077 enables integration between the videogame and OpenAI API, opening a world of possibilities for enhancing the gameplay experience. With this plugin, you can call OpenAI API methods directly from the scripting level.
The image generated with Midjourney
Installation:
Download the zip from the latest release
Move CyberAI.dll and Settings.json to red4ext\plugins\CyberAI
Open Settings.json and paste your OpenAI API key and organization id
If you would access to the plugin's functions from CET console, you need to move CyberAI.reds to r6\scripts\CyberAI
Usage: Ask GPT to generate an answer for you: >ScheduleChatCompletionRequest("your_custom_id", {{"User", "My name is V"}, {"User", "How are you and what's my name?"}});
>LogChannel("DEBUG", GetAnswer("your_custom_id")); Hello V! I'm an AI and I don't possess personal information about individuals unless you provide it to me. Hence, I don't know your name unless you tell me. How can I assist you today?
>LogChannel("DEBUG", GetHistoryAsString("your_custom_id")); User: My name is V User: How are you and what's my name? Assistant: Hello V! I'm an AI and I don't possess personal information about individuals unless you provide it to me. Hence, I don't know your name unless you tell me. How can I assist you today?
Future Plans:
Eleven Labs Integration: We plan to integrate with Eleven Labs to provide text-to-speech functionality, allowing the AI to generate audio responses in addition to text.
InWorld AI Integration: We are exploring the possibility of integrating with InWorld AI, a powerful AI engine for creating characters. This could allow for even more dynamic and responsive AI characters in the game.
Inspiration: With this plugin, the possibilities are almost limitless. Here are just a few examples of what you can script with it:
AI-NPC Dialogue: Use OpenAI's GPT to generate unique dialogue for non-player characters (NPCs), increasing the diversity and richness of in-game interactions.
Dynamic Plot Generation: Use OpenAI to generate unique storylines or side quests based on in-game events or player actions.
Procedural Mission Planning: Generate procedural missions based on context, NPC data, and player preferences using AI.
Interactive Environment: Use AI to generate dynamic responses from the environment, making your exploration of Night City even more immersive.
Intelligent Enemy Tactics: AI could control enemy tactics based on the player's strategy and actions, making combat more challenging and unpredictable.
Remember, these are just examples, and the only limit is your imagination!
Credits:
red4ext-rs: A Rust binding for RED4ext, which provides an API to interact with the internals of Cyberpunk 2077.
Enjoy exploring the new world of Cyberpunk 2077 with the power of AI!