> For the complete documentation index, see [llms.txt](https://docs.moescape.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.moescape.ai/tavern-chatbot-guide/tavern-parameters.md).

# Tavern Parameters

## What are parameters

Parameters are advanced settings that allow you to precisely adjust or wholly transform your character's response. Parameter presets govern response length, randomness, and repetitiveness, you can choose from the ready-made presets craft your own to ensure your character’s reactions perfectly reflect your ideal vision.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXen7Q0mb2n505qloPcPfxxt6ZbUSIh6jXO5SlOXDcAU3Ikm1CzE--hEvkZCsBMynqx-3ITazumJAiup2KlKy-r2UVQejg0rLlt9odl34Cc5tLz9U3d1NsPDT7VTd6KE4ihUG7AYKjibm1aJxWRqyh18UHFQ?key=MnFKq-nRdc-nnmPeanRXjA" alt=""><figcaption></figcaption></figure>

Customize these parameters further using the sliders available in Chat Settings.\
\
![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXddIHuPHKosOlIjfMgM5Y9eC8nNJunw4d1U82fF2X4yRH74UcVsz8TPI96sdN1iUh6i1n_Ngcu82sTkN3x1EbQJcud9M2eLDZ6JEUbREj6M8FBwW6AbM3ial-6a1goJAOl0RMWHS-UB6oqSl5Xxm0dLEARK?key=MnFKq-nRdc-nnmPeanRXjA)\ <br>
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

## **Max New Tokens**

#### Maximum number of tokens to generate.

The lower the max new tokens number, the shorted the length of the response and vice versa. Use this to adjust the length of the responses you wish to receive from the characters.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXckiG8R_bW2iRBPf771ov2NFW_qDYhrt7GNAjAVSOpMe5pEGzcTOOW0D9fpotQ7hFXth4wdptYrB48rvu9BQvaI5kw7n_Tmsxu6jvwnXX4fUkJtGymngnsoUkOROhTO0H8vnJjWsl5fzUxZBU3wmj7-3Ork?key=MnFKq-nRdc-nnmPeanRXjA" alt=""><figcaption></figcaption></figure>

***

## Temperature

#### Controls the randomness of the generated text.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdT1GoJISNe6vDTeXi-_2o4WawWbNh-xVGcRLg6783cvoYRM3GdOoujB3KzUzJQiR8JvPtgYPbOV8B1um4U2aw3nXihHh_03MVETEN6M_tXoU9oLzbmNOLANkKR_HL2vAe17hGGjXtTAOCpZrHJfhslI3H-?key=MnFKq-nRdc-nnmPeanRXjA" alt=""><figcaption></figcaption></figure>

* Lower value - the answers are more logical but less creative.
* Higher value - the answers are more creative but less logical.

***

## Top P

Limits the token pool to however many tokens it takes for their probabilities to add up to P.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXceCC9YsiqPjjX7lXAPxP93oORk8Iksu7teAR090VtL2BCCZGxFZ-qcWeVE4zYkScmEqxUXf_vpFoypautaeuBj4mIW5FbRODUHk4Pl8QjboPpmAS6X3cwt-r8qKeYBWaynvSdjfNa4FXvzOXZLe0R3JWTW?key=MnFKq-nRdc-nnmPeanRXjA" alt=""><figcaption></figcaption></figure>

* A lower number is more consistent but less creative.

***

## Top K

#### &#x20;Set The Range of possible random results

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXelCByhfawDG286ENnxK4JhrS534TmzjsjuHcz_MpcsI1u6yhHA6RptNvTdH5oaDWAszB1Cn0SEoN5HVjpBcIU1L4xtIEathDUbyGYvBNttiXPOSqFBJpz7H_Z5ZuvN6rO-qggKMZbF73tt7GH1C9sn-aw8?key=MnFKq-nRdc-nnmPeanRXjA" alt=""><figcaption></figcaption></figure>

* A lower number is more consistent but less creative.

***

## Repetition Penalty

Higher values make the output less repetitive.<br>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdupFNSHcsIIcscT0FjwBnVVUUSVmBjFwtmq5Ibf7F89BXd_KosNZxofNAzXOYPOZDnqFMO4v6j7at4D6r6ZyuXNBjTO9Tcbb9n5mSejbg363qn8eHwihQpVYkWEwDYFlI7E_mVr5T6iT2WbuUWaH-NZGBI?key=MnFKq-nRdc-nnmPeanRXjA" alt=""><figcaption></figcaption></figure>

<br>
