pub struct ConversionFlags {
pub is_conversion_request: bool,
pub is_streaming: bool,
pub is_stream_response: bool,
pub should_convert_stream_response: bool,
}Expand description
Boolean state machine that records what kind of conversion is in flight.
Fields§
§is_conversion_request: boolTrue if the original request targets /v1/responses (or /responses)
and must be converted to a Chat-API request.
is_streaming: boolTrue if the client requested streaming (stream: true).
is_stream_response: boolTrue if the upstream is producing a streaming response. Usually equal
to is_streaming but retained as a separate flag for clarity around
upstream content-type detection.
should_convert_stream_response: boolTrue only after response_filter confirmed the upstream is producing
SSE we should convert. Drives response_body_filter’s streaming path.
Trait Implementations§
Source§impl Debug for ConversionFlags
impl Debug for ConversionFlags
Source§impl Default for ConversionFlags
impl Default for ConversionFlags
Source§fn default() -> ConversionFlags
fn default() -> ConversionFlags
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConversionFlags
impl RefUnwindSafe for ConversionFlags
impl Send for ConversionFlags
impl Sync for ConversionFlags
impl Unpin for ConversionFlags
impl UnsafeUnpin for ConversionFlags
impl UnwindSafe for ConversionFlags
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more