pub struct OpenAiCompatRequest {
pub base_url: String,
pub api_key: String,
pub model: String,
pub user_message: String,
pub temperature: Option<f64>,
pub reasoning_effort: Option<String>,
pub max_completion_tokens: usize,
pub backend: String,
}Fields§
§base_url: String§api_key: String§model: String§user_message: String§temperature: Option<f64>§reasoning_effort: Option<String>§max_completion_tokens: usize§backend: StringTrait Implementations§
Auto Trait Implementations§
impl Freeze for OpenAiCompatRequest
impl RefUnwindSafe for OpenAiCompatRequest
impl Send for OpenAiCompatRequest
impl Sync for OpenAiCompatRequest
impl Unpin for OpenAiCompatRequest
impl UnsafeUnpin for OpenAiCompatRequest
impl UnwindSafe for OpenAiCompatRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more