DeepSeekParams

open class DeepSeekParams

Base class for DeepSeek API parameters.

This class provides common parameters used across different DeepSeek API endpoints, serving as a foundation for more specific parameter classes like ChatCompletionParams and FIMCompletionParams.

Inheritors

Properties

Link copied to clipboard

Reduces repetition by penalizing tokens based on their frequency in the text

Link copied to clipboard
val maxTokens: Int? = null

Maximum number of tokens to generate in the response

Link copied to clipboard
val presencePenalty: Double? = null

Reduces repetition by penalizing tokens that have appeared in the text

Link copied to clipboard
val stop: StopReason? = null

Custom stop sequence that causes the model to stop generating further tokens

Link copied to clipboard
val temperature: Double? = null

Controls randomness in output generation (higher = more random)

Link copied to clipboard
val topP: Double? = null

Controls diversity via nucleus sampling (consider only tokens with top_p probability mass)

Functions

Link copied to clipboard

Creates chat completion parameters with custom settings.

Link copied to clipboard

Creates chat completion stream parameters with custom settings.

Link copied to clipboard

Creates file-in-the-middle (FIM) completion parameters with custom settings.

Link copied to clipboard

Creates file-in-the-middle (FIM) completion stream parameters with custom settings.