disable ai import if no key is set

This commit is contained in:
vabene1111
2025-04-18 13:23:47 +02:00
parent d7f37e8293
commit e18b0ad049
9 changed files with 1861 additions and 22 deletions

View File

@@ -2155,6 +2155,7 @@ class ServerSettingsViewSet(viewsets.GenericViewSet):
# Attention: No login required, do not return sensitive data
s['shopping_min_autosync_interval'] = settings.SHOPPING_MIN_AUTOSYNC_INTERVAL
s['enable_pdf_export'] = settings.ENABLE_PDF_EXPORT
s['enable_ai_import'] = settings.AI_API_KEY != ''
s['disable_external_connectors'] = settings.DISABLE_EXTERNAL_CONNECTORS
s['terms_url'] = settings.TERMS_URL
s['privacy_url'] = settings.PRIVACY_URL