Fix llm_index_enabled should be a property

This commit is contained in:
shamoon
2026-01-10 19:56:54 -08:00
parent b71b23777e
commit 10e180b40d
4 changed files with 7 additions and 6 deletions

View File

@@ -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)