pub struct StreamOptions {
pub temperature: Option<f32>,
pub max_tokens: Option<u32>,
pub api_key: Option<String>,
pub reasoning: Option<ThinkingLevel>,
pub cancel: Option<CancellationToken>,
pub base_url: Option<String>,
pub headers: BTreeMap<String, String>,
}Fields§
§temperature: Option<f32>§max_tokens: Option<u32>§api_key: Option<String>§reasoning: Option<ThinkingLevel>§cancel: Option<CancellationToken>Cancellation token honored by the provider HTTP client and SSE loop.
base_url: Option<String>Override base URL (used by OpenAI-compatible passthrough providers).
headers: BTreeMap<String, String>Optional custom request headers.
Trait Implementations§
Source§impl Clone for StreamOptions
impl Clone for StreamOptions
Source§fn clone(&self) -> StreamOptions
fn clone(&self) -> StreamOptions
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 StreamOptions
impl Debug for StreamOptions
Source§impl Default for StreamOptions
impl Default for StreamOptions
Source§fn default() -> StreamOptions
fn default() -> StreamOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StreamOptions
impl RefUnwindSafe for StreamOptions
impl Send for StreamOptions
impl Sync for StreamOptions
impl Unpin for StreamOptions
impl UnsafeUnpin for StreamOptions
impl UnwindSafe for StreamOptions
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