OpenAI Provider

Use OpenAI models (GPT-4o, GPT-4, etc.) for analysis and queries.

Configuration

{
  "providers": {
    "openai": {
      "type": "openai",
      "model": "gpt-4o",
      "apiKeyEnv": "OPENAI_API_KEY"
    }
  }
}

Options

FieldDefaultDescription
modelModel ID (e.g., gpt-4o, gpt-4o-mini)
apiKeyEnv"OPENAI_API_KEY"Environment variable for API key
baseUrlhttps://api.openai.com/v1API base URL
apiStyle"chat""responses" for Responses API, "chat" for Chat Completions

Environment Variable

Set your API key:

export OPENAI_API_KEY=sk-...