> For the complete documentation index, see [llms.txt](https://djai.gitbook.io/djai-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://djai.gitbook.io/djai-docs/basics/model-settings.md).

# Model Settings

How to change the way a bot writes: response settings, the advanced sliders, the system prompt, and presets.

The settings panel controls how the model writes. You can change the length, the point of view, the amount of narration, and the raw sampler values.

<figure><img src="https://3803788759-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FESLYD8aEkmwoKBXa7ceO%2Fuploads%2FKLuRyNHxfUOqhrEY6GYA%2Fimage.png?alt=media&#x26;token=ea5ec263-698c-461f-861b-d7ada2dc17dc" alt=""><figcaption></figcaption></figure>

## Where to Find the Settings

1. Open a chat.
2. The chat toolbar shows the model that the chat uses now.
3. Select it. The settings panel opens.

The panel saves your changes automatically.

## Where the Settings Apply

The first time you change a setting in a chat, Dreamjourney asks where the change applies:

| Choice        | Effect                                                  |
| ------------- | ------------------------------------------------------- |
| **This chat** | Only this chat uses the new values. Other chats do not. |
| **All chats** | The values become your defaults for every new chat.     |

The `Reset` button follows the same rule. It resets this chat, or all chats.

## Response Settings

This is the easy way to change the writing. Four tabs, no numbers.

### Length

| Option       | Reply size                                             |
| ------------ | ------------------------------------------------------ |
| **Chat**     | About 80 tokens. Like a text message.                  |
| **Moderate** | About 200 tokens. 1-2 short paragraphs.                |
| **Normal**   | About 300 tokens. 2-3 paragraphs. This is the default. |
| **Novelist** | About 600 tokens. 4 or more paragraphs.                |

### Point of View

| Option           | Example                             |
| ---------------- | ----------------------------------- |
| **First Person** | "I walk into the garden..."         |
| **Third Person** | "She walks into the garden..."      |
| **Bot Decides**  | The bot picks. This is the default. |

### Dialogue and Narration

| Option                | Effect                                       |
| --------------------- | -------------------------------------------- |
| **Narration Only**    | Description only. No spoken words.           |
| **Lots of Narration** | Rich description with some dialogue.         |
| **Balanced**          | Equal narration and dialogue.                |
| **Low Narration**     | Mostly dialogue, light description. Default. |
| **Dialogue Only**     | Speech only. Almost no description.          |

### Tense

| Option            | Example                 |
| ----------------- | ----------------------- |
| **Present Tense** | "She walks to you."     |
| **Bot Decides**   | The bot picks. Default. |
| **Past Tense**    | "She walked to you."    |

Select `Save & Apply`. Dreamjourney writes the instructions into the system prompt and sets the response length for you.

## The Advanced Sliders

Use these only if you know what they do. The response settings above are enough for most chats.

| Setting                | Range    | Default | What it does                                                     |
| ---------------------- | -------- | ------- | ---------------------------------------------------------------- |
| **Response Length**    | 1 - 1500 | 450     | The maximum length of one reply, in tokens.                      |
| **Temperature**        | 0 - 2    | 1       | Higher is more creative and less predictable. Lower is steadier. |
| **Repetition Penalty** | 1 - 2    | 1       | Higher pushes the model away from words it just used.            |
| **Min-P**              | 0 - 1    | 0       | Higher cuts off unlikely words. It keeps the text on topic.      |

{% hint style="warning" %}
Not every model uses every value. Some models limit the temperature to 1, and some ignore Min-P. A value above 1.2 can make any model write badly. Keep the temperature near 1 unless a chat feels repetitive.
{% endhint %}

## The System Prompt

The system prompt is the instruction that sits above the whole chat. It tells the model who it is and how to write.

* `{{char}}` becomes the bot name.
* `{{user}}` becomes your persona name, or your username.
* The response settings write into this field. Edit it after you apply them, not before.

## Presets

### Built-in presets

| Preset        | Reply length | Prompt                             |
| ------------- | ------------ | ---------------------------------- |
| **Chat**      | 80 tokens    | Short, in-character replies.       |
| **Roleplay**  | 450 tokens   | The default roleplay prompt.       |
| **Adventure** | 200 tokens   | The bot narrates a text adventure. |

### Your own presets

Select `Save as preset` to store the current model, prompt, and all slider values under a name. A preset can be private, or public for other users.

Load a preset at any time. The panel marks a preset as changed as soon as you edit a value.

## Reset

Select `Reset to Default Settings` if the replies get worse. This restores the standard values. It does not delete your chat.

## Tips

1. Change one value at a time. Then read a few replies before you change more.
2. Short replies come from the length setting, not from the temperature.
3. If the bot repeats itself, raise the repetition penalty to 1.1 before you raise the temperature.
4. Write down the values that work for a bot. Or save them as a preset.

For more help, join the Discord: <https://discord.gg/najQEtdjxy>
