hamxaameer commited on
Commit
45ef96f
·
verified ·
1 Parent(s): 4fc4e4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -423,8 +423,9 @@ def generate_llm_answer(
423
  llm_client,
424
  attempt: int = 1
425
  ) -> Optional[str]:
426
- if not llm_client:
427
- logger.error(" → LLM client not initialized")
 
428
  return None
429
 
430
  query_lower = query.lower()
 
423
  llm_client,
424
  attempt: int = 1
425
  ) -> Optional[str]:
426
+ # Allow operation when using remote inference (no local llm_client).
427
+ if not llm_client and not USE_REMOTE_LLM:
428
+ logger.error(" → LLM client not initialized and remote inference disabled")
429
  return None
430
 
431
  query_lower = query.lower()