Cyberpunk 2077
0 of 0

File information

Last updated

Original upload

Created by

tomatojuice

Uploaded by

tomatojui

Virus scan

Safe to use

About this mod

With this plugin, you can call OpenAI API methods directly from the scripting level.

Requirements
Permissions and credits
Mirrors
Changelogs
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!

Please, visit the GitHub page to know more.