Struct llm_api_access::openai::ChatCompletion
source · pub struct ChatCompletion {
pub model: String,
pub messages: Vec<Message>,
pub temperature: f32,
}
Fields§
§model: String
§messages: Vec<Message>
§temperature: f32
Trait Implementations§
source§impl Clone for ChatCompletion
impl Clone for ChatCompletion
source§fn clone(&self) -> ChatCompletion
fn clone(&self) -> ChatCompletion
Returns a copy of the value. Read more
1.0.0 · 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 ChatCompletion
impl Debug for ChatCompletion
Auto Trait Implementations§
impl Freeze for ChatCompletion
impl RefUnwindSafe for ChatCompletion
impl Send for ChatCompletion
impl Sync for ChatCompletion
impl Unpin for ChatCompletion
impl UnwindSafe for ChatCompletion
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