<?php

return [

    'openai' => [
        'api_key' => env('OPENAI_API_KEY'),
        'organization' => env('OPENAI_ORGANIZATION'),
        // Model used for chat (e.g. gpt-4o, gpt-4, gpt-3.5-turbo). Use same as your Custom GPT if you want same behavior.
        'chat_model' => env('OPENAI_CHAT_MODEL', 'gpt-3.5-turbo'),
        // Whisper model: whisper-1 (default) or gpt-4o-mini-transcribe / gpt-4o-transcribe for better accuracy.
        'transcription_model' => env('OPENAI_TRANSCRIPTION_MODEL', 'whisper-1'),
        // Paste your Custom GPT instructions here (from GPT builder → Configure → Instructions). If set, this defines agent behavior.
        'agent_instructions' => env('OPENAI_AGENT_INSTRUCTIONS'),
        // Optional: path to a file containing instructions (e.g. storage/app/agent_instructions.txt). Used if OPENAI_AGENT_INSTRUCTIONS is empty.
        'agent_instructions_file' => env('OPENAI_AGENT_INSTRUCTIONS_FILE'),
        // If true, use only agent_instructions as system prompt and plain chat (no state machine, no JSON). Set to true when using Custom GPT instructions as-is.
        'simple_chat' => env('OPENAI_SIMPLE_CHAT', 'false') === 'true',
    ],

    'voice' => [
        'use_free_tts' => env('USE_FREE_TTS', 'true') !== 'false',
    ],

];
