{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/corapilot-com/json-schema/corapilot-com-aiconfig-request-schema.json",
  "title": "AIConfigRequest",
  "description": "Request to update AI configuration for an account.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/corapilot-com-openapi.yml#/components/schemas/AIConfigRequest",
  "properties": {
    "provider": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Provider",
      "description": "AI provider: 'openai', 'anthropic', etc."
    },
    "model": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Model",
      "description": "Default AI model: 'gpt-4', 'claude-3-opus', etc."
    },
    "model_routing": {
      "anyOf": [
        {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Model Routing",
      "description": "Task-to-model mapping: {'task': 'model'}"
    },
    "api_keys": {
      "anyOf": [
        {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Api Keys",
      "description": "API keys per provider: {'openai': 'sk-...', 'anthropic': 'sk-ant-...'}"
    }
  },
  "type": "object"
}