We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62f8ab1 commit 625752eCopy full SHA for 625752e
1 file changed
bigcodebench/gen/util/mistral_request.py
@@ -1,3 +1,5 @@
1
+import time
2
+
3
from mistralai.client import MistralClient
4
from mistralai.models.chat_completion import ChatMessage
5
@@ -7,6 +9,7 @@ def make_auto_request(client: MistralClient, *args, **kwargs) -> ChatMessage:
7
9
try:
8
10
ret = client.chat(*args, **kwargs)
11
except Exception as e:
12
+ print("Unknown error. Waiting...")
13
print(e)
14
time.sleep(1)
15
return ret
0 commit comments