pub struct OpenAiEncoderOptions {
pub use_max_completion_tokens: bool,
pub allow_reasoning_effort: bool,
pub max_encoded_bytes: usize,
}Expand description
Options controlling Chat Completions field names and capability gates.
Fields§
§use_max_completion_tokens: boolWhen true, emit max_completion_tokens instead of max_tokens.
allow_reasoning_effort: boolWhether reasoning_effort may be encoded.
max_encoded_bytes: usizeMaximum encoded body bytes.
Trait Implementations§
Source§impl Clone for OpenAiEncoderOptions
impl Clone for OpenAiEncoderOptions
Source§fn clone(&self) -> OpenAiEncoderOptions
fn clone(&self) -> OpenAiEncoderOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OpenAiEncoderOptions
impl Debug for OpenAiEncoderOptions
Auto Trait Implementations§
impl Freeze for OpenAiEncoderOptions
impl RefUnwindSafe for OpenAiEncoderOptions
impl Send for OpenAiEncoderOptions
impl Sync for OpenAiEncoderOptions
impl Unpin for OpenAiEncoderOptions
impl UnsafeUnpin for OpenAiEncoderOptions
impl UnwindSafe for OpenAiEncoderOptions
Blanket Implementations§
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