CoderHassan commited on
Commit
a0172b3
Β·
verified Β·
1 Parent(s): bcc9879

Update agents/intent.py

Browse files
Files changed (1) hide show
  1. 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 != "YOUR_GEMINI_KEY_HERE":
79
  try:
80
  genai.configure(api_key=api_key)
81
- model = genai.GenerativeModel("gemini-1.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.
 
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.