Spaces:
Sleeping
Sleeping
Update agents/intent.py
Browse files- agents/intent.py +1 -1
agents/intent.py
CHANGED
|
@@ -78,7 +78,7 @@ def run(message: str) -> dict:
|
|
| 78 |
if api_key and api_key != "YOUR_GEMINI_API_KEY_HERE":
|
| 79 |
try:
|
| 80 |
genai.configure(api_key=api_key)
|
| 81 |
-
model = genai.GenerativeModel("
|
| 82 |
|
| 83 |
prompt = f"""You are a service request parser for Pakistan's informal economy.
|
| 84 |
Extract structured info from the user message. Respond ONLY with valid JSON, no markdown, no explanation.
|
|
|
|
| 78 |
if api_key and api_key != "YOUR_GEMINI_API_KEY_HERE":
|
| 79 |
try:
|
| 80 |
genai.configure(api_key=api_key)
|
| 81 |
+
model = genai.GenerativeModel("gemini-2.5-flash")
|
| 82 |
|
| 83 |
prompt = f"""You are a service request parser for Pakistan's informal economy.
|
| 84 |
Extract structured info from the user message. Respond ONLY with valid JSON, no markdown, no explanation.
|