AI

General AI Settings

ai:
  enabled: false
  model: "GPT" # or GEMINI (BETA) -> if you want to use GEMINI, make sure you fully test it since it might be a bit more unstable than GPT
  apiKey: "api-key-here"

Make sure that after you create a key, to purchase tokens from OpenAI. Go here and scroll to the bottom https://platform.openai.com/account/limits and put at least 5$. For 5$ you will be able to get about 2 million tokens. A conversation has about 1.5k tokens meaning that you will be able to have aprox 1.3k total conversations.

Chat Formatter

chat:
  way: "normal" # or "broadcast" <--------- Sometimes when using normal, some plugins block the chat. However, by using the broadcast-chat event it works each time
  broadcast_format: "{playerDisplayName}: {message}" # Supports PlaceholderAPI, current internal placeholders: {playerName}, {playerDisplayName} and {message}
  • way: The way the fake player will try to send a chat message. If set to "normal" it will go through the normal ways of sending messages, but some plugins may deny it. However, there's a workaround by using "broadcast"

  • broadcast_format: How the format when sending a broadcast that should look when a player tries to send a message through "broadcast" way

  basic:
    delay: "{random[2,5]}" # The delay for each conversation
    playerToAI:
      enabled: true
      response_chance: 5 # The chance of it happening
    AItoAI: # BETA
      enabled: false
      chance: 20 # Of initiating a conversation
      response_chance: 70 # Of responding to the bot who wants to talk
      initiation: "initiate small talk with {selectedTarget}, make sure to mention his username fully or short, don't mention your name, also please each new small talk be different, so check the history and make sure it's not the same as the above, must be under 20-30 characters " # rule that happens when the AI wants to begin a conversation with another AI
  • delay: Set to true to enable AI

  • playerToAI->response_chance: The AI language model, GPT works, GEMINI is still in BETA

  • AItoAI->chance: The chances of a fake player start a conversation in chat

  • AItoAI->response_chance: The chances each time an AI has to respond back to the fake player

  • AItoAI->initiation: The context needed for the fake player to initialzie a conversation with another fake player

Make sure if you want to use AItoAI to go to

Scheduler

and read about {initAIConv}

Advanced AI Settings

  • rule: The rule each fake player MUST follow when talking with a real player or another fake player

  • timeouts: When a conversation ends timeouts are sent so players cannot immediately start new conversations with other players. Sender is the one who initializes the conversation, the receiver is the one who receives it. You can also set the whole conversation lifespan, so if a player stops responding after a N amount of seconds the conversation will auto-destroy

  • addRuleReminder: Just like the rules, this is an extra-rule each new message sent to remind the fake players what they are doing. Keep in mind that this consumes extra tokens.

  • reminder: The reminder context, it can be short, mostly used to remind them of the most important parts of the rule

  • maxResponses: This defines the length of the conversation aka the total messages ever sent in the conversation from the sender & receiver

  • safeguards: Sometimes the AI might break and having safeguards helps you prevent that. You can choose to either remove the "breached" parts from the fake player's message or just destroy the conversation

  • forceNoPunctuation: Removes all the punctuation from the final text

  • forceOnlySmallLetters: Makes the whole text with small letters

  • closeOnNewPlayerMentioned: If the fake player is interacting with a real player, then he mentiones a new name, there are some chances the AI could break. If you enable this it will destroy the conversation whenever a new name is mentioned (by the real player)

  • gpt: The gpt part represents settings available only for OpenAI's GPT

Last updated