Spaces:
Sleeping
Sleeping
Update agents/intent.py
Browse files- agents/intent.py +2 -2
agents/intent.py
CHANGED
|
@@ -75,10 +75,10 @@ def run(message: str) -> dict:
|
|
| 75 |
api_key = os.environ.get("GEMINI_API_KEY", "YOUR_GEM_KEY").strip()
|
| 76 |
|
| 77 |
# ββ Try Gemini first βββββββββββββββββββββββββββββββββββββββββ
|
| 78 |
-
if api_key and api_key != "
|
| 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.
|
|
|
|
| 75 |
api_key = os.environ.get("GEMINI_API_KEY", "YOUR_GEM_KEY").strip()
|
| 76 |
|
| 77 |
# ββ Try Gemini first βββββββββββββββββββββββββββββββββββββββββ
|
| 78 |
+
if api_key and api_key != "YOUR_GEM_KEY":
|
| 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.
|