Thomas Stokes
d9118c04bf
Parse the Azure OpenAI rate limit message ( #5956 )
...
Fixes #4161
Currently Codex uses a regex to parse the "Please try again in 1.898s"
OpenAI-style rate limit message, so that it can wait the correct
duration before retrying. Azure OpenAI returns a different error that
looks like "Rate limit exceeded. Try again in 35 seconds."
This PR extends the regex and parsing code to match in a more fuzzy
manner, handling anything matching the pattern "try again in
\<duration>\<unit>".
2025-11-01 09:33:13 -07:00
..
2025-10-27 12:10:11 -07:00
2025-10-31 14:27:08 -07:00
2025-10-20 15:52:25 -07:00
2025-10-30 15:51:57 -07:00
2025-10-03 13:02:26 -07:00
2025-10-30 13:23:24 -07:00
2025-10-30 10:28:32 +00:00
2025-10-31 13:27:33 -07:00
2025-10-30 15:51:57 -07:00
2025-10-29 21:04:25 +00:00
2025-10-30 07:22:42 -07:00
2025-10-30 15:51:57 -07:00
2025-10-23 18:51:34 +01:00
2025-10-29 21:04:25 +00:00
2025-10-28 18:55:53 -07:00
2025-10-20 15:52:25 -07:00
2025-10-30 09:49:40 +00:00
2025-10-29 22:33:57 +00:00
2025-11-01 09:33:13 -07:00
2025-10-27 05:53:39 +00:00
2025-10-30 07:22:42 -07:00
2025-10-30 18:44:02 -07:00
2025-10-31 10:30:36 -07:00
2025-10-29 21:04:25 +00:00
2025-09-29 13:06:08 -07:00
2025-10-24 19:12:03 +00:00
2025-10-18 17:43:08 -07:00
2025-10-30 20:33:25 -04:00
2025-10-30 18:44:02 -07:00
2025-10-30 10:28:32 +00:00
2025-10-30 15:51:57 -07:00
2025-10-30 15:51:57 -07:00
2025-09-24 14:29:51 -07:00
2025-10-20 20:57:37 +01:00
2025-10-28 11:02:25 -07:00
2025-10-20 20:57:37 +01:00
2025-10-30 10:28:32 +00:00
2025-10-30 10:28:32 +00:00
2025-10-27 17:55:57 -04:00
2025-10-30 10:28:32 +00:00
2025-10-31 00:45:05 +00:00
2025-10-24 09:47:52 -07:00
2025-10-20 11:29:49 -07:00
2025-10-30 10:28:32 +00:00
2025-10-20 15:52:25 -07:00
2025-10-15 17:46:01 +01:00
2025-10-29 21:04:25 +00:00
2025-09-18 14:14:16 -07:00
2025-10-30 15:51:57 -07:00
2025-10-30 14:25:04 -07:00
2025-10-20 20:57:37 +01:00
2025-10-28 21:29:16 -07:00
2025-08-20 04:51:59 +00:00
2025-08-20 16:54:26 +00:00
2025-10-20 08:50:54 -07:00
2025-10-23 17:08:06 +01:00
2025-09-22 17:16:02 +00:00
2025-10-30 18:44:02 -07:00
2025-10-20 23:53:03 +00:00
2025-10-29 22:33:57 +00:00