[ // Designing a whole store from the brand description. 'generate' => [ 'provider' => env('AI_GENERATE_PROVIDER') ?: 'claude', 'model' => env('AI_GENERATE_MODEL') ?: 'claude-sonnet-5-5', 'max_tokens' => 16000, ], // Small changes asked for by chat ("make the banner darker"). 'edit' => [ 'provider' => env('AI_EDIT_PROVIDER') ?: 'deepseek', 'model' => env('AI_EDIT_MODEL') ?: 'deepseek-chat', 'max_tokens' => 6000, ], // The short daily note at the top of the dashboard ("Store pulse"). A cheap model is enough. 'pulse' => [ 'provider' => env('AI_PULSE_PROVIDER') ?: 'deepseek', 'model' => env('AI_PULSE_MODEL') ?: 'deepseek-chat', 'max_tokens' => 400, ], ], /* * The dashboard note is written at most once a day per view (all stores, or one store) and saved, * so refreshing the dashboard costs nothing. "Write again" asks for a fresh note; this is how many * times a merchant may press it per day, across all views. It does not count toward AI changes. */ 'pulse' => [ 'daily_rewrites' => (int) env('AI_PULSE_DAILY_REWRITES', 3), ], 'providers' => [ 'claude' => [ 'driver' => ClaudeDriver::class, 'api_key' => env('ANTHROPIC_API_KEY'), // Let Claude think before answering. Better designs, slightly higher cost. 'thinking' => (bool) env('AI_CLAUDE_THINKING', true), ], 'deepseek' => [ 'driver' => OpenAiCompatibleDriver::class, 'api_key' => env('DEEPSEEK_API_KEY'), 'base_url' => env('DEEPSEEK_BASE_URL') ?: 'https://api.deepseek.com', // The most this provider can write in one answer. 'max_output_tokens' => 8000, ], // No real AI. Returns a built-in sample design. For tests and for working without API keys. 'fake' => [ 'driver' => FakeDriver::class, // Seconds to wait, so the progress screen can be seen. 'delay' => (int) env('AI_FAKE_DELAY', 0), ], ], // Seconds to wait for one AI answer before giving up. 'timeout' => (int) env('AI_TIMEOUT', 240), ];