Files
isaaccladandCursor 7f51392857
Deploy Ladill Frontdesk / deploy (push) Successful in 45s
Route Afia through the platform AI relay when no local API key is set.
Frontdesk now calls ladill.com/api/afia/chat using IDENTITY_API_KEY_FRONTDESK
so production does not need a separate OpenAI key in the frontdesk .env.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-28 07:45:39 +00:00

15 lines
743 B
PHP

<?php
return [
// Afia — Ladill in-app AI assistant, scoped to Frontdesk.
'product' => env('AFIA_PRODUCT', 'frontdesk'),
'enabled' => (bool) env('AFIA_ENABLED', true),
'provider' => env('AFIA_PROVIDER', 'openai'), // openai | anthropic
'model' => env('AFIA_MODEL', 'gpt-4o-mini'),
// Optional direct provider key. When empty, Afia uses the platform relay below.
'api_key' => env('AFIA_API_KEY', env('OPENAI_API_KEY')),
// Platform relay — uses the monolith's configured AI keys (same pattern as Billing).
'platform_api_url' => env('AFIA_PLATFORM_API_URL', env('IDENTITY_API_URL', 'https://ladill.com/api')),
'platform_api_key' => env('AFIA_PLATFORM_API_KEY', env('IDENTITY_API_KEY_FRONTDESK')),
];