Spaces:
Sleeping
Sleeping
github-actions[bot] commited on
Commit ·
cedde2c
1
Parent(s): 8fa8c6d
Auto-deploy backend from GitHub Actions
Browse files
app/services/chat_service.py
CHANGED
|
@@ -6,7 +6,7 @@ from fastapi import HTTPException
|
|
| 6 |
|
| 7 |
# Keep temperature low for factual, focused tutoring
|
| 8 |
llm = ChatGoogleGenerativeAI(
|
| 9 |
-
model="gemini-
|
| 10 |
)
|
| 11 |
|
| 12 |
|
|
|
|
| 6 |
|
| 7 |
# Keep temperature low for factual, focused tutoring
|
| 8 |
llm = ChatGoogleGenerativeAI(
|
| 9 |
+
model="gemini-2.5-flash", google_api_key=settings.GEMINI_API_KEY, temperature=0.4
|
| 10 |
)
|
| 11 |
|
| 12 |
|
app/services/llm_service.py
CHANGED
|
@@ -18,7 +18,7 @@ from app.schemas.cards import LearningDeckResponse
|
|
| 18 |
# 1. GLOBAL LLM INITIALIZATION
|
| 19 |
# ==========================================
|
| 20 |
llm = ChatGoogleGenerativeAI(
|
| 21 |
-
model="gemini-
|
| 22 |
google_api_key=settings.GEMINI_API_KEY,
|
| 23 |
temperature=0.7,
|
| 24 |
max_retries=2, # Built-in retry logic for brief network hiccups
|
|
|
|
| 18 |
# 1. GLOBAL LLM INITIALIZATION
|
| 19 |
# ==========================================
|
| 20 |
llm = ChatGoogleGenerativeAI(
|
| 21 |
+
model="gemini-2.5-flash",
|
| 22 |
google_api_key=settings.GEMINI_API_KEY,
|
| 23 |
temperature=0.7,
|
| 24 |
max_retries=2, # Built-in retry logic for brief network hiccups
|