> ## Documentation Index
> Fetch the complete documentation index at: https://docs.inworld.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# TextGenerationConfig

> Configuration for text generation This interface was referenced by `InworldBasicConfigurationSchema`'s JSON-Schema via the `definition` "TextGenerationConfig".

## Properties

* [max\_new\_tokens](#max_new_tokens)
* [max\_prompt\_length](#max_prompt_length)
* [temperature](#temperature)
* [top\_p](#top_p)
* [repetition\_penalty](#repetition_penalty)
* [frequency\_penalty](#frequency_penalty)
* [presence\_penalty](#presence_penalty)
* [stop\_sequences](#stop_sequences)
* [seed](#seed)
* [logit\_bias](#logit_bias)

***

## Properties

### max\_new\_tokens

```typescript theme={"system"}
max_new_tokens?: string | number
```

Maximum number of tokens to generate

### max\_prompt\_length

```typescript theme={"system"}
max_prompt_length?: string | number
```

Maximum length of the prompt in tokens

### temperature

```typescript theme={"system"}
temperature?: string | number
```

Controls randomness of generated text

### top\_p

```typescript theme={"system"}
top_p?: string | number
```

Probability for most probable tokens sampling

### repetition\_penalty

```typescript theme={"system"}
repetition_penalty?: string | number
```

Repetition penalty

### frequency\_penalty

```typescript theme={"system"}
frequency_penalty?: string | number
```

Frequency penalty

### presence\_penalty

```typescript theme={"system"}
presence_penalty?: string | number
```

Presence penalty

### stop\_sequences

```typescript theme={"system"}
stop_sequences?: string[]
```

List of sequences to stop generation

### seed

```typescript theme={"system"}
seed?: string | number
```

Random seed for controlling the randomness of text generation

### logit\_bias

```typescript theme={"system"}
logit_bias?: object
```

Logit bias to modify token likelihood
