"""Minimal Varion helper for the official OpenAI Python SDK."""
from __future__ import annotations

from openai import OpenAI


def create_varion_client(api_key: str, base_url: str = "https://api.varion.tech/v1") -> OpenAI:
    if not api_key or not api_key.startswith("varion_"):
        raise ValueError("A valid Varion API key is required")
    return OpenAI(api_key=api_key, base_url=base_url.rstrip("/"))
