Spaces:
No application file
No application file
Update app.py
Browse files
app.py
CHANGED
|
@@ -315,6 +315,7 @@ async def call_gemini_multiplex(prompt, attachment=None):
|
|
| 315 |
error_str = str(e)
|
| 316 |
if "429" in error_str:
|
| 317 |
logger.warning(f"Key Rate Limited: {api_key[:6]}... Switching...")
|
|
|
|
| 318 |
continue
|
| 319 |
logger.error(f"🤖 [Gemini Engine Error] {error_str}")
|
| 320 |
continue
|
|
|
|
| 315 |
error_str = str(e)
|
| 316 |
if "429" in error_str:
|
| 317 |
logger.warning(f"Key Rate Limited: {api_key[:6]}... Switching...")
|
| 318 |
+
await asyncio.sleep(2)
|
| 319 |
continue
|
| 320 |
logger.error(f"🤖 [Gemini Engine Error] {error_str}")
|
| 321 |
continue
|