rsnarsna commited on
Commit
d4639a3
·
1 Parent(s): aedd1cc

fix: Update OAuth token and refresh token; adjust polling intervals for retry attempts

Browse files
Files changed (2) hide show
  1. Google_oauth_token.json +1 -1
  2. gemini_transcript.py +12 -7
Google_oauth_token.json CHANGED
@@ -1 +1 @@
1
- {"token": "ya29.a0AT3oNZ8VM9JCNl85zOSfTFgTkjudHCsbZTBPfsCE6BBFyVnuxu_6LDsxfBv9_z11cI1YvIarGSHx997v41SXnmM9--kPBOGXr20icEfDgikjGBflN89-to3AJXrIPbLcWGloP4xS3tEHkNQfmTiOC1W2V7dNFe67ItG6EqD4CH8SuWS2qcdQlBE5XmlK4Wfbg-sTtd4aCgYKAc4SARcSFQHGX2MiHDfFsetN_gZlr0nQQSFtag0206", "refresh_token": "1//0gB7Wvc3i1pwQCgYIARAAGBASNwF-L9IrCQAsGQpKLWUO-ofQt2lkPXic5fszEjvzKkGUx8k1V1HZRAMzuchTl8hdjEpilpJA0ik", "token_uri": "https://oauth2.googleapis.com/token", "client_id": "769133159215-9gbq0l5v49kmclfcq7vbq7tutck0aphd.apps.googleusercontent.com", "client_secret": "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", "scopes": ["https://www.googleapis.com/auth/spreadsheets", "https://www.googleapis.com/auth/gmail.send", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/youtube.force-ssl"], "universe_domain": "googleapis.com", "account": "", "expiry": "2026-06-08T07:09:56Z"}
 
1
+ {"token": "ya29.a0AT3oNZ95tIeMyTUfKjwQDCqj3tE4zkMx-Ofd69fpo26fjN7CR-FPjxiSIVz71PyuHf0raSmUiN_9Y_cHO8bIsjJuq2Iav-VfZR8C0VBSQPqmmEMWecgPsoh-gW8fOK3adpRQ8XXidX0IbCAzr_3Ohg5qbbpXedCkgaKwd5pWfV-ePF2XWKTtA3MGVTHTw276e3FnzZ4aCgYKAXgSARcSFQHGX2Mi54MX0XoOZ_3HMQ5LQmkQVg0206", "refresh_token": "1//0gB7Wvc3i1pwQCgYIARAAGBASNwF-L9IrCQAsGQpKLWUO-ofQt2lkPXic5fszEjvzKkGUx8k1V1HZRAMzuchTl8hdjEpilpJA0ik", "token_uri": "https://oauth2.googleapis.com/token", "client_id": "769133159215-9gbq0l5v49kmclfcq7vbq7tutck0aphd.apps.googleusercontent.com", "client_secret": "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", "scopes": ["https://www.googleapis.com/auth/spreadsheets", "https://www.googleapis.com/auth/gmail.send", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/youtube.force-ssl"], "universe_domain": "googleapis.com", "account": "", "expiry": "2026-06-08T09:33:20.292878Z"}
gemini_transcript.py CHANGED
@@ -37,13 +37,18 @@ GEMINI_MODELS = [
37
  POLLING_CONFIG = {
38
  "attempt_1": {"wait_before": 0, "description": "Immediate attempt on trigger"},
39
  "attempt_2": {"wait_before": 300, "description": "Retry after 5 minutes"},
40
- "attempt_3": {"wait_before": 900, "description": "Retry after 15 minutes"},
41
- "attempt_4": {"wait_before": 1800, "description": "Retry after 30 minutes"},
42
- "attempt_5": {"wait_before": 3600, "description": "Retry after 1 hour"},
43
- "attempt_6": {"wait_before": 3600, "description": "Retry after 2 hours total"},
44
- "attempt_7": {"wait_before": 3600, "description": "Retry after 3 hours total"},
45
- "attempt_8": {"wait_before": 3600, "description": "Retry after 4 hours total"},
46
- "attempt_9": {"wait_before": 3600, "description": "Final attempt at 5 hours total"},
 
 
 
 
 
47
  }
48
 
49
  SYSTEM_PROMPT = """
 
37
  POLLING_CONFIG = {
38
  "attempt_1": {"wait_before": 0, "description": "Immediate attempt on trigger"},
39
  "attempt_2": {"wait_before": 300, "description": "Retry after 5 minutes"},
40
+ "attempt_3": {"wait_before": 900, "description": "Retry after 15 minutes "},
41
+ "attempt_4": {"wait_before": 900, "description": "Retry after 15 minutes 30 minutes completed"},
42
+ "attempt_5": {"wait_before": 900, "description": "Retry after 15 minutes 45 minutes completed"},
43
+ "attempt_6": {"wait_before": 900, "description": "Retry after 15 minutes 1 hour completed"},
44
+ "attempt_7": {"wait_before": 900, "description": "Retry after 15 minutes 1 hour 15 minutes completed"},
45
+ "attempt_8": {"wait_before": 900, "description": "Retry after 15 minutes 1 hour 30 minutes completed"},
46
+ "attempt_3": {"wait_before": 900, "description": "Retry after 15 minutes 1 hour 45 minutes completed"},
47
+ "attempt_4": {"wait_before": 900, "description": "Retry after 15 minutes 2 hours completed"},
48
+ "attempt_5": {"wait_before": 900, "description": "Retry after 15 minutes 2 hours 15 minutes completed"},
49
+ "attempt_6": {"wait_before": 900, "description": "Retry after 15 minutes 2 hours 30 minutes completed"},
50
+ "attempt_7": {"wait_before": 900, "description": "Retry after 15 minutes 2 hours 45 minutes completed"},
51
+ "attempt_8": {"wait_before": 900, "description": "Retry after 15 minutes 3 hours completed"},
52
  }
53
 
54
  SYSTEM_PROMPT = """