When communicating over websockets, we can't rely on headers to deliver rate limit information. This PR adds a `codex.rate_limits` event that the server can pass to the client to inform them about rate limit usage. The client parses this data the same way we parse rate limit headers in HTTP mode. This PR also wires up the etag and reasoning headers for websockets |
||
|---|---|---|
| .. | ||
| aggregate.rs | ||
| compact.rs | ||
| mod.rs | ||
| models.rs | ||
| responses.rs | ||
| responses_websocket.rs | ||
| session.rs | ||