ochsncon commited on
Commit
afbc0a3
·
verified ·
1 Parent(s): e4d6112

Update src/recommendation_engine.py

Browse files
Files changed (1) hide show
  1. src/recommendation_engine.py +2 -2
src/recommendation_engine.py CHANGED
@@ -7,7 +7,7 @@ from typing import Any
7
 
8
  from openai import OpenAI
9
 
10
- from src.config import LLM_API_KEY, LLM_MODEL, LLM_PROMPT_VERSION, USE_LLM
11
  from src.utils import format_currency_chf
12
 
13
 
@@ -147,7 +147,7 @@ def _build_llm_prompt(
147
 
148
 
149
  def _call_llm(prompt: str) -> str | None:
150
- if not (USE_LLM and LLM_API_KEY):
151
  return None
152
 
153
  try:
 
7
 
8
  from openai import OpenAI
9
 
10
+ from src.config import LLM_API_KEY, LLM_MODEL, LLM_PROMPT_VERSION
11
  from src.utils import format_currency_chf
12
 
13
 
 
147
 
148
 
149
  def _call_llm(prompt: str) -> str | None:
150
+ if not LLM_API_KEY:
151
  return None
152
 
153
  try: