Struct chat_gpt_lib_rs::client::ChatInput
source · pub struct ChatInput {
pub model: Model,
pub messages: Vec<Message>,
pub temperature: Option<f64>,
pub top_p: Option<f64>,
pub n: Option<usize>,
pub stream: Option<bool>,
pub stop: Option<Vec<String>>,
pub max_tokens: Option<usize>,
pub presence_penalty: Option<f64>,
pub frequency_penalty: Option<f64>,
pub logit_bias: Option<LogitBias>,
pub user: Option<String>,
}
Expand description
Represents the input for the chat API call.
Fields§
§model: Model
§messages: Vec<Message>
§temperature: Option<f64>
§top_p: Option<f64>
§n: Option<usize>
§stream: Option<bool>
§stop: Option<Vec<String>>
§max_tokens: Option<usize>
§presence_penalty: Option<f64>
§frequency_penalty: Option<f64>
§logit_bias: Option<LogitBias>
§user: Option<String>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ChatInput
impl Send for ChatInput
impl Sync for ChatInput
impl Unpin for ChatInput
impl UnwindSafe for ChatInput
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