CoderHassan commited on
Commit
dffe895
·
verified ·
1 Parent(s): ef8f1e6

Update agents/intent.py

Browse files
Files changed (1) hide show
  1. agents/intent.py +2 -2
agents/intent.py CHANGED
@@ -1,5 +1,5 @@
1
  """Agent 1 — Intent Agent
2
- Uses Gemini 3.1 Flash TTS if GEMINI_API_KEY is valid.
3
  Falls back to rule-based parser if key is missing/invalid (demo mode).
4
  """
5
  import os, json, re
@@ -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("gemini-3.1-flash-tts")
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.
 
1
  """Agent 1 — Intent Agent
2
+ Uses Gemini 2.5 Flash Lite if GEMINI_API_KEY is valid.
3
  Falls back to rule-based parser if key is missing/invalid (demo mode).
4
  """
5
  import os, json, re
 
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-lite")
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.