log to sentry when one generation fails
This commit is contained in:
parent
b41f3c65c7
commit
659b82b214
@ -395,6 +395,10 @@ async def stream_code(websocket: WebSocket):
|
||||
if isinstance(completion, Exception):
|
||||
completions[index] = ""
|
||||
print("Generation failed for variant", index)
|
||||
try:
|
||||
raise Exception("One of the generations failed")
|
||||
except:
|
||||
sentry_sdk.capture_exception()
|
||||
|
||||
print("Models used for generation: ", variant_models)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user