Spaces:
Running
Running
axeronis commited on
Commit ·
6a85942
1
Parent(s): 3389e96
fix: Correct Gemini model name to gemini-1.5-flash (remove version suffix)
Browse filesFiles changed (2)
79 unmodified lines80818283848586878879 unmodified lines# 3. UPLOAD TO GOOGLE CACHE# TTL: 1 hour (standard). We will refresh it on activity.# Use 1.5-flash-001 for better free tier limitscache = caching.CachedContent.create(model='models/gemini-1.5-flash-001',display_name=f"tenant_{tenant.id}_{int(datetime.now().timestamp())}",system_instruction=system_instruction,ttl=timedelta(minutes=60),79 unmodified lines80818283848586878879 unmodified lines# 3. UPLOAD TO GOOGLE CACHE# TTL: 1 hour (standard). We will refresh it on activity.# Use gemini-1.5-flash for stable API supportcache = caching.CachedContent.create(model='models/gemini-1.5-flash',display_name=f"tenant_{tenant.id}_{int(datetime.now().timestamp())}",system_instruction=system_instruction,ttl=timedelta(minutes=60),
34 unmodified lines353637383940414234 unmodified lineselse:genai.configure(api_key=settings.GEMINI_API_KEY)# NOTE: gemini-2.5-flash currently has very low RPM (5) in preview/free tier.self.default_model_name = "gemini-1.5-flash-001"self.ai_queue = get_ai_queue() # Rate limiting queuelogger.info(f"✅ Gemini LLM client initialized (model: {self.default_model_name})")34 unmodified lines353637383940414234 unmodified lineselse:genai.configure(api_key=settings.GEMINI_API_KEY)# NOTE: Using gemini-1.5-flash for better stability and caching supportself.default_model_name = "gemini-1.5-flash"self.ai_queue = get_ai_queue() # Rate limiting queuelogger.info(f"✅ Gemini LLM client initialized (model: {self.default_model_name})")
backend/app/services/ai_memory_manager.py+2-2
backend/app/services/llm_client.py+2-2