We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9444c6b commit 4eb0dd1Copy full SHA for 4eb0dd1
src/attribution/attribution_service.py
@@ -213,6 +213,12 @@ def get_attribution(
213
attribution_response.title,
214
str(attribution_response.detail),
215
)
216
+
217
+ if attribution_response.type_ == "server-overloaded":
218
+ raise exceptions.ServiceUnavailable(
219
+ description="OLMoTrace is currently overloaded. Please try again later."
220
+ )
221
222
raise exceptions.InternalServerError(
223
description=f"infini-gram API reported an error: {attribution_response.title}"
224
0 commit comments