Skip to content

ModelOptions

Options for configuring the behavior of the AI model. kind is a required property here, but this section can accept additional via options.

---
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
    }
frequencyPenalty: 0.5
maxOutputTokens: 2048
presencePenalty: 0.3
seed: 42
temperature: 0.7
topK: 40
topP: 0.9
stopSequences:
- |+
- "###"
allowMultipleToolCalls: true
additionalProperties:
customProperty: value
anotherProperty: anotherValue
NameTypeDescription
frequencyPenaltyfloat32The frequency penalty to apply to the model’s output
maxOutputTokensint32The maximum number of tokens to generate in the output
presencePenaltyfloat32The presence penalty to apply to the model’s output
seedint32A random seed for deterministic output
temperaturefloat32The temperature to use for sampling
topKint32The top-K sampling value
topPfloat32The top-P sampling value
stopSequencesstring[]Stop sequences to end generation
allowMultipleToolCallsbooleanWhether to allow multiple tool calls in a single response
additionalPropertiesdictionaryAdditional custom properties for model options