{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/eidolon-resource/_shared/latest--AzureOpenAIConnectionHandler.json",
  "title": "AzureOpenAIConnectionHandler",
  "description": "Automatically infers the values from environment variables for:\n    - `api_key` from `AZURE_OPENAI_API_KEY` (IFF `api_key` AND 'azure_ad_token_provider' is not provided)\n    - `organization` from `OPENAI_ORG_ID`\n    - `azure_ad_token` from `AZURE_OPENAI_AD_TOKEN`\n    - `api_version` from `OPENAI_API_VERSION`\n    - `azure_endpoint` from `AZURE_OPENAI_ENDPOINT`",
  "x-lintel": {
    "source": "https://www.eidolonai.com/json_schema/v1/schemas/OpenAIConnectionHandler/AzureOpenAIConnectionHandler.json",
    "sourceSha256": "77df8f0d442dc6d745195ed0cf4346630457bc466245a83b214f09543eccbfca"
  },
  "type": "object",
  "properties": {
    "implementation": {
      "const": "AzureOpenAIConnectionHandler",
      "title": "Implementation"
    },
    "azure_ad_token_provider": {
      "anyOf": [
        {
          "$ref": "#/$defs/_Reference"
        },
        {
          "type": "null"
        }
      ]
    },
    "token_provider_scopes": {
      "default": [
        "https://cognitiveservices.azure.com/.default"
      ],
      "items": {
        "type": "string"
      },
      "title": "Token Provider Scopes",
      "type": "array"
    },
    "api_version": {
      "default": "2024-02-01",
      "title": "Api Version",
      "type": "string"
    }
  },
  "additionalProperties": true,
  "$defs": {
    "_Reference": {
      "type": "object",
      "properties": {
        "implementation": {
          "title": "Implementation",
          "type": "string"
        }
      },
      "title": "_Reference",
      "additionalProperties": true
    }
  },
  "required": [
    "implementation"
  ],
  "reference_details": {
    "clz": "eidolon_ai_sdk.apu.llm.open_ai_connection_handler.AzureOpenAIConnectionHandler",
    "groups": [
      "OpenAIConnectionHandler"
    ],
    "name": "AzureOpenAIConnectionHandler",
    "overrides": {}
  }
}
