From 29e90f256f71866b09c3812bd55817f1955175ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Poizat?= Date: Tue, 2 Dec 2025 11:02:06 +0100 Subject: [PATCH] Add AI related env var AI_ENABLED allows to test AI features only in some wanted environment. AI_API_KEY and AI_API_URL allows to call the LLM while we wait for tmail backend endpoints. It will be removed when tmail backend endpoints are ready. --- lib/main/utils/app_config.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/main/utils/app_config.dart b/lib/main/utils/app_config.dart index f22cd5a35..a480ea208 100644 --- a/lib/main/utils/app_config.dart +++ b/lib/main/utils/app_config.dart @@ -77,4 +77,10 @@ class AppConfig { static bool get isCozyIntegrationEnabled => dotenv.get('COZY_INTEGRATION', fallback: 'false') == 'true'; static String get cozyExternalBridgeVersion => dotenv.get('COZY_EXTERNAL_BRIDGE_VERSION', fallback: '0.16.1'); + + static bool get isAiEnabled => dotenv.get('AI_ENABLED', fallback: 'false') == 'true'; + + static String get aiApiKey => dotenv.get('AI_API_KEY', fallback: ''); + + static String get aiApiUrl => dotenv.get('AI_API_URL', fallback: ''); } \ No newline at end of file