Wire Afia AI assistant for Woo Manager via platform relay.
Deploy Ladill Woo Manager / deploy (push) Successful in 1m19s

The chat panel and POST /ai/chat route were missing after the Invoice scaffold; Afia now relays through the platform when no local OpenAI key is set.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-07 01:23:21 +00:00
co-authored by Cursor
parent cebf0d2e61
commit 26b1d5b433
8 changed files with 316 additions and 6 deletions
+11
View File
@@ -0,0 +1,11 @@
<?php
return [
'product' => env('AFIA_PRODUCT', 'woo'),
'enabled' => (bool) env('AFIA_ENABLED', true),
'provider' => env('AFIA_PROVIDER', 'openai'),
'model' => env('AFIA_MODEL', 'gpt-4o-mini'),
'api_key' => env('AFIA_API_KEY', env('OPENAI_API_KEY')),
'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_WOO')),
];