<?php

return [
    /*
    |--------------------------------------------------------------------------
    | Default AI Provider
    |--------------------------------------------------------------------------
    |
    | This is the provider that Laravel AI SDK will use when you call the
    | anonymous `agent()` helper without explicitly specifying a provider.
    |
    */

    'default' => env('AI_DEFAULT_PROVIDER', 'openai'),

    /*
    |--------------------------------------------------------------------------
    | Providers
    |--------------------------------------------------------------------------
    |
    | Here we configure OpenAI as a provider. We will actually point this
    | provider at Groq's OpenAI-compatible endpoint using the "url" option.
    |
    */

    'providers' => [
        'openai' => [
            'driver' => 'openai',
            'key' => env('OPENAI_API_KEY'),
            'url' => env('OPENAI_BASE_URL'),
            'text' => [
                // Point text generation to Groq's OpenAI-compatible model
                'model' => env('OPENAI_TEXT_MODEL', 'llama-3.1-8b-instant'),
            ],
        ],
    ],
];

