pub fn same_request_frame(prefix_bytes: &[u8], current: &Value) -> boolExpand description
Whether the previously forwarded request and the current one are the same
request around their messages: every top-level member other than
messages (model, limits, tools, system, …) is present in both and equal.
The conversation id only hashes the system prompt and the first message, and the store is shared by every route. Replaying the forwarded bytes of a request with another frame would send that request’s model and parameters — possibly another provider’s — in place of the caller’s.