Spaces:
Runtime error
Runtime error
zwq2018
commited on
Commit
•
65106f3
1
Parent(s):
ee9b49f
modified: lab_gpt4_call.py
Browse files- lab_gpt4_call.py +1 -1
lab_gpt4_call.py
CHANGED
@@ -140,7 +140,7 @@ def send_chat_request_Azure(query, openai_key, api_base, engine):
|
|
140 |
|
141 |
|
142 |
|
143 |
-
@retry(Exception, tries=
|
144 |
@timeout_decorator(45)
|
145 |
def send_official_call(query, openai_key='', api_base='', engine=''):
|
146 |
start = time.time()
|
|
|
140 |
|
141 |
|
142 |
|
143 |
+
@retry(Exception, tries=4, delay=20, backoff=2)
|
144 |
@timeout_decorator(45)
|
145 |
def send_official_call(query, openai_key='', api_base='', engine=''):
|
146 |
start = time.time()
|