@yamlresume/ai
    Preparing search index...

    Function getAIProvider

    • Resolve the AI provider from the environment.

      The provider is inferred from provider-specific environment variables rather than a single YAMLRESUME_AI_PROVIDER flag:

      • DEEPSEEK_API_KEY -> deepseek
      • OPENAI_API_KEY -> openai
      • MOONSHOT_API_KEY -> kimi
      • OLLAMA_HOST -> ollama

      Defaults to Kimi when no provider can be inferred so that a missing API key produces a clear configuration error.

      Returns AIProvider

      The provider identifier.