// Generated by alef. Do not edit by hand.
@file:Suppress(
    "ktlint:standard:trailing-comma-on-call-site",
    "ktlint:standard:trailing-comma-on-declaration-site",
    "ktlint:standard:spacing-between-declarations-with-comments",
    "ktlint:standard:spacing-between-declarations-with-annotations",
    "ktlint:standard:when-entry-bracing",
    "ktlint:standard:blank-line-between-when-conditions",
    "ktlint:standard:blank-line-before-declaration",
    "ktlint:standard:chain-method-continuation",
    "ktlint:standard:annotation",
    "ktlint:standard:max-line-length",
    "ktlint:standard:no-semi",
    "ktlint:standard:statement-wrapping",
    "MaxLineLength",
    "TooManyFunctions",
    "FunctionParameterNaming",
    "LongParameterList",
    "CyclomaticComplexMethod",
    "LongMethod",
)

package dev.kreuzberg

/**
 * Configuration for an LLM provider/model via liter-llm.
 *
 * Each feature (VLM OCR, VLM embeddings, structured extraction) carries
 * its own `LlmConfig`, allowing different providers per feature.
 */
data class LlmConfig(
    /**
     * Provider/model string using liter-llm routing format.
     *
     * Examples: `"openai/gpt-4o"`, `"anthropic/claude-sonnet-4-20250514"`,
     * `"groq/llama-3.1-70b-versatile"`.
     */
    val model: String = "",
    /**
     * API key for the provider. When `null`, liter-llm falls back to
     * the provider's standard environment variable (e.g., `OPENAI_API_KEY`).
     */
    val apiKey: String? = null,
    /** Custom base URL override for the provider endpoint. */
    val baseUrl: String? = null,
    /** Request timeout in seconds (default: 60). */
    val timeoutSecs: Long? = null,
    /** Maximum retry attempts (default: 3). */
    val maxRetries: Int? = null,
    /** Sampling temperature for generation tasks. */
    val temperature: Double? = null,
    /** Maximum tokens to generate. */
    val maxTokens: Long? = null,
)
