Update app.py
Browse files
app.py
CHANGED
|
@@ -65,13 +65,13 @@ final_answer = FinalAnswerTool()
|
|
| 65 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
| 66 |
|
| 67 |
# --- Configure LLM Model ---
|
| 68 |
-
if not os.getenv("
|
| 69 |
-
print("CRITICAL:
|
| 70 |
# exit(1) # Or handle gracefully
|
| 71 |
|
| 72 |
model = LiteLLMModel(
|
| 73 |
model_id="gemini/gemini-1.5-flash-latest",
|
| 74 |
-
api_key=os.getenv("
|
| 75 |
max_tokens=4096,
|
| 76 |
temperature=0.6
|
| 77 |
)
|
|
|
|
| 65 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
| 66 |
|
| 67 |
# --- Configure LLM Model ---
|
| 68 |
+
if not os.getenv("GEMINI_TOKEN"):
|
| 69 |
+
print("CRITICAL: GEMINI_TOKEN environment variable not set. LLM will not work.")
|
| 70 |
# exit(1) # Or handle gracefully
|
| 71 |
|
| 72 |
model = LiteLLMModel(
|
| 73 |
model_id="gemini/gemini-1.5-flash-latest",
|
| 74 |
+
api_key=os.getenv("GEMINI_TOKEN"),
|
| 75 |
max_tokens=4096,
|
| 76 |
temperature=0.6
|
| 77 |
)
|