mistral_common.protocol.base
BaseCompletionRequest(**data)
Bases: MistralBase
Base class for completion requests.
Attributes:
| Name | Type | Description |
|---|---|---|
temperature |
float
|
Sampling temperature to use, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. |
top_p |
float
|
Nucleus sampling parameter, top-p probability mass, between 0 and 1. |
max_tokens |
int | None
|
Maximum number of tokens to generate. |
random_seed |
int | None
|
Random seed for reproducibility. |
Examples: