chat-with-NPC

Settings

1. Configuration File

The configuration file of the mod is stored in the chat-with-npc folder in the plugin directory. The file name is the config.json. The content of the file is as follows:

{
  "enabled": true,
  "range": 10.0,
  "language": "Chinese",
  "apiKey": "sk-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "model": "gpt-3.5-turbo",
  "apiURL": "api.openai.com",
  "isBubble": true,
  "isChatBar": true,
  "wordLimit": 30
}

You can set the parameters below:

2. Manage you Assistant in OpenAI platform

Once you create a new NPC, you will see the Assistant in your OpenAI platform as below:

Assistant

You can access to the OpenAI platform to manage, use and test your NPCs in the OpenAI platform Assistant.

**Important: The settings in your configuration file will override the settings on the OpenAI platform, so remember to modify them in the configuration file after testing.

3. Introduction of the structure of the mod

This document is about some basic settings of the plugin, which can help users to use the plugin well, or to develop the plugin within the scope of the license. The plugin has the following parts:

  1. Conversation manager
  2. Group manager
  3. NPCEntity manager
  4. Lifecycle manager

And some basic settings:

4. Conversation manager

The Conversation manager is the core part of the plugin, which is responsible for managing all conversations. The main settings of the Conversation are:

5. Group manager

The Group manager is responsible for managing all Groups, and the main settings of the Group are:

Other settings:

6. NPCEntity manager

The NPCEntity manager is responsible for managing all NPCEntity, and the main settings of NPCEntity are:

Other settings:

7. Lifecycle manager

The lifecycle manager is responsible for managing the lifecycle of all ConversationHandler, NPCEntity and Group, and the main settings are: