Update app.py
Browse files
app.py
CHANGED
|
@@ -423,8 +423,9 @@ def generate_llm_answer(
|
|
| 423 |
llm_client,
|
| 424 |
attempt: int = 1
|
| 425 |
) -> Optional[str]:
|
| 426 |
-
|
| 427 |
-
|
|
|
|
| 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()
|