DeepSeekParams

open class DeepSeekParams

Shared sampling parameters for the DeepSeek chat and FIM endpoints.

This class carries the fields common to both endpoints and acts as the base of ChatCompletionParams and FIMCompletionParams. It also exposes shortcut factory methods (chat, chatStream, fim, fimStream) so any existing param instance can be used as an entry point to produce a differently-typed one.

Inheritors

Properties

Link copied to clipboard

Reduces repetition by penalizing tokens based on their frequency in the text. Expected range: -2.0..2.0.

Link copied to clipboard

Maximum number of tokens to generate in the response. Expected range: 1..8192.

Link copied to clipboard

Reduces repetition by penalizing tokens that have appeared in the text. Expected range: -2.0..2.0.

Link copied to clipboard

Custom stop sequences that cause the model to stop generating further tokens.

Link copied to clipboard

Controls randomness in output generation (higher = more random). Expected range: 0.0..2.0.

Link copied to clipboard
val topP: Double?

Controls diversity via nucleus sampling (consider only tokens with top_p probability mass). Expected range: 0.0..1.0.

Functions

Link copied to clipboard

Shortcut to chatCompletionParams, available on any existing DeepSeekParams.

Link copied to clipboard
Link copied to clipboard

Shortcut to fimCompletionParams, available on any existing DeepSeekParams.

Link copied to clipboard