ModelOptions
Options for configuring the behavior of the AI model.
kind is a required property here, but this section can accept additional via options.
Class Diagram
Section titled “Class Diagram”---
title: ModelOptions
config:
look: handDrawn
theme: colorful
class:
hideEmptyMembersBox: true
---
classDiagram
class ModelOptions {
+float32 frequencyPenalty
+int32 maxOutputTokens
+float32 presencePenalty
+int32 seed
+float32 temperature
+int32 topK
+float32 topP
+string[] stopSequences
+boolean allowMultipleToolCalls
+dictionary additionalProperties
}
Yaml Example
Section titled “Yaml Example”frequencyPenalty: 0.5maxOutputTokens: 2048presencePenalty: 0.3seed: 42temperature: 0.7topK: 40topP: 0.9stopSequences: - |+
- "###"allowMultipleToolCalls: trueadditionalProperties: customProperty: value anotherProperty: anotherValueProperties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| frequencyPenalty | float32 | The frequency penalty to apply to the model’s output |
| maxOutputTokens | int32 | The maximum number of tokens to generate in the output |
| presencePenalty | float32 | The presence penalty to apply to the model’s output |
| seed | int32 | A random seed for deterministic output |
| temperature | float32 | The temperature to use for sampling |
| topK | int32 | The top-K sampling value |
| topP | float32 | The top-P sampling value |
| stopSequences | string[] | Stop sequences to end generation |
| allowMultipleToolCalls | boolean | Whether to allow multiple tool calls in a single response |
| additionalProperties | dictionary | Additional custom properties for model options |