"""OpenAI backend parameters."""

from __future__ import annotations

from dataclasses import dataclass, field
from typing import Any

from thryve.core.backends.param import BaseBackendParam


@dataclass
class OpenAIBackendParam(BaseBackendParam):
    """Parameters specific to the OpenAI (and compatible) backend."""

    model: str = "gpt-4o-mini"
    api_key: str | None = None
    base_url: str | None = None
    temperature: float = 0.7
    max_tokens: int | None = None
    vision_enabled: bool = True
    extra: dict[str, Any] = field(default_factory=dict)
