Jump to content

Rust AI 1.0.3

   (0 reviews)

1 Screenshot

  • 20.1k
  • 74
  • 13.75 kB

About Rust AI

The RustAI Oxide plugin integrates AI generative models into Rust servers, supporting both Text Generation WebUI for custom local models and OpenAI models, simultaneously.
Admins can switch between models using a command or via the configuration file. The plugin includes per-user and global cooldowns to prevent spam and/or overwhelming the model.
 

Installation Instructions:

Place the "RustAI.cs" file in the Oxide plugins directory
Edit the config file at oxide/config/RustAI.json
Reload the plugin with o.reload RustAI
 

Configuration:

Open the server's configuration file at oxide/config/RustAI.json.

Adjust settings such as API URLs, wakewords (like wipe or admin), cooldowns, and model types.

To use with OpenAI, just enter your OpenAI API Key.
Al base configurations and urls are pre entered.

To use with Text Generation WebUI, first you need a local model running with the api extension.
Then enter the IP in TextGenerationApiUrl field. Ports and urls are already entered with the default values.


Permissions:

Grant the "rustai.use" permission to players for AI interaction.

Grant the "rustai.switchmodel" permission to admins for model switching.
 

Activating the AI:

Players with "rustai.use" permission trigger the AI by mentioning wakewords in the conversation (case insensitive). They can be defined in the config file.

The AI model responds based on the provided prompt and the message.
 

Switching AI Models:

Users with "rustai.switchmodel" permission use "/switchmodel" to toggle between Text Generation WebUI and OpenAI models.

Users receive confirmation messages and the plugin automatically saves the updated configuration.


Normal operation as ingame support with a local cpu only LLM (cpu usage is for the model).


Example config:

 

{
  "ActivationKeywords": [
    "wipe",
    "admin"
  ],
  "Character": "Assistant",
  "DiscordWebhookURL": "your discord webhook here",
  "GlobalCooldownInSeconds": 10.0,
  "MaxTokens": 100,
  "ModelName": "gpt-3.5-turbo",
  "ModelType": "openai",
  "OpenAI_API_Key": "your openai api key here",
  "OpenAIApiURL": "https://api.openai.com/v1/chat/completions",
  "SendCooldownMessages": true,
  "SystemPrompt": "Keep responses short. Wipe days: Thursdays at 4 PM. Discord: discord.gg/yourdiscord",
  "Temperature": 0.9,
  "TextGenerationApiUrl": "http://0.0.0.0:5000/v1/chat/completions",
  "UserCooldownInSeconds": 30.0
}




 


User Feedback

1.4m

Downloads

Total number of downloads.

6.8k

Customers

Total customers served.

101.7k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.