mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-01-14 21:54:22 -06:00
Fix llm_index_enabled should be a property
This commit is contained in:
@@ -200,5 +200,6 @@ class AIConfig(BaseConfig):
|
||||
self.llm_api_key = app_config.llm_api_key or settings.LLM_API_KEY
|
||||
self.llm_endpoint = app_config.llm_endpoint or settings.LLM_ENDPOINT
|
||||
|
||||
@property
|
||||
def llm_index_enabled(self) -> bool:
|
||||
return self.ai_enabled and self.llm_embedding_backend
|
||||
return bool(self.ai_enabled and self.llm_embedding_backend)
|
||||
|
||||
Reference in New Issue
Block a user