habulaj commited on
Commit
ac047a8
·
verified ·
1 Parent(s): a001f65

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -34,7 +34,7 @@ async def startup_event():
34
  print("Iniciando cliente do Gemini em plano de fundo...")
35
  client = GeminiClient(Secure_1PSID, Secure_1PSIDTS, proxy=None)
36
  # auto_refresh=True fará com que o token __Secure-1PSIDTS seja renovado automaticamente
37
- await client.init(timeout=180, auto_close=False, close_delay=300, auto_refresh=True)
38
  print("Cliente Gemini-API inicializado com sucesso!")
39
 
40
  @app.get("/")
 
34
  print("Iniciando cliente do Gemini em plano de fundo...")
35
  client = GeminiClient(Secure_1PSID, Secure_1PSIDTS, proxy=None)
36
  # auto_refresh=True fará com que o token __Secure-1PSIDTS seja renovado automaticamente
37
+ await client.init(timeout=180, auto_close=False, close_delay=300, auto_refresh=True, watchdog_timeout=300)
38
  print("Cliente Gemini-API inicializado com sucesso!")
39
 
40
  @app.get("/")