Skip to content

LanguageModelCallOptionsInput

Namespace: Vercel.AI.Util

public sealed class LanguageModelCallOptionsInput

Model call options validated by LanguageModelCallPreparation.

Inheritance: object

View source

public double? FrequencyPenalty { get; set; }

Frequency penalty.

Value: double?

View source

public double? MaxOutputTokens { get; set; }

Maximum output tokens. Must be an integer greater than or equal to 1 when set.

Value: double?

View source

public double? PresencePenalty { get; set; }

Presence penalty.

Value: double?

View source

public string? Reasoning { get; set; }

Provider reasoning options.

Value: string

View source

public double? Seed { get; set; }

Random seed. Must be an integer when set.

Value: double?

View source

public IReadOnlyList<string>? StopSequences { get; set; }

Stop sequences.

Value: IReadOnlyList<string>

View source

public double? Temperature { get; set; }

Sampling temperature.

Value: double?

View source

public double? TopK { get; set; }

Top-k cutoff.

Value: double?

View source

public double? TopP { get; set; }

Nucleus sampling probability.

Value: double?

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product