mirror of
https://github.com/openai/codex.git
synced 2026-10-28 18:58:46 +00:00
## What changed Move `response.failed` classification and rate-limit retry-delay parsing into `responses_error.rs`, preserving existing error mappings, fallback messages, and malformed-payload behavior. Replace the inline classification logic in the SSE event handler with `parse_failed_response`. ## Testing Add regression coverage for missing or malformed failed-response payloads, including invalid values in unused error fields. Move the existing retry-delay parsing tests alongside the extracted parser. GitOrigin-RevId: 6faa09b3fb312f1990509eef7088c8a086724615
7 lines
189 B
Rust
7 lines
189 B
Rust
pub(crate) mod responses;
|
|
mod responses_error;
|
|
|
|
pub(crate) use responses::ResponsesStreamEvent;
|
|
pub(crate) use responses::process_responses_event;
|
|
pub use responses::spawn_response_stream;
|