<?php

return [
    'driver' => env('OCR_DRIVER', 'aliyun'),

    'drivers' => [
        'aliyun' => [
            'access_key_id' => env('ALIYUN_ACCESS_KEY_ID'),
            'access_key_secret' => env('ALIYUN_ACCESS_KEY_SECRET'),
            'endpoint' => env('ALIYUN_OCR_ENDPOINT', 'ocr.cn-shanghai.aliyuncs.com'),
        ],
        'baidu' => [
            'app_id' => env('BAIDU_OCR_APP_ID'),
            'api_key' => env('BAIDU_OCR_API_KEY'),
            'secret_key' => env('BAIDU_OCR_SECRET_KEY'),
        ],
        'external' => [
            'url' => env('LEARNING_ANALYTICS_URL'),
            'timeout' => 30,
        ],
    ],

    'upload' => [
        'max_size' => 10 * 1024 * 1024, // 10MB
        'allowed_types' => ['jpg', 'jpeg', 'png', 'webp'],
        'disk' => 'public',
        'path' => 'uploads/ocr',
    ],
];
