You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test("retries plain text rate limit errors from Alibaba",()=>{
149
+
constmsg=
150
+
"Upstream error from Alibaba: Request rate increased too quickly. To ensure system stability, please adjust your client logic to scale requests more smoothly over time."
151
+
consterror=wrap(msg)
152
+
expect(SessionRetry.retryable(error)).toBe(msg)
153
+
})
154
+
155
+
test("retries plain text rate limit errors",()=>{
156
+
constmsg="Rate limit exceeded, please try again later"
157
+
consterror=wrap(msg)
158
+
expect(SessionRetry.retryable(error)).toBe(msg)
159
+
})
160
+
161
+
test("retries too many requests in plain text",()=>{
162
+
constmsg="Too many requests, please slow down"
163
+
consterror=wrap(msg)
164
+
expect(SessionRetry.retryable(error)).toBe(msg)
165
+
})
166
+
148
167
test("does not retry context overflow errors",()=>{
149
168
consterror=newMessageV2.ContextOverflowError({
150
169
message: "Input exceeds context window of this model",
0 commit comments