Spaces:
Sleeping
Sleeping
Update src/recommendation_engine.py
Browse files
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
|
| 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
|
| 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:
|