pub struct ChatModelParams {
pub model: String,
pub temperature: f32,
pub top_p: f32,
pub stop: Vec<String>,
pub max_tokens: u64,
pub frequency_penalty: f32,
pub presence_penalty: f32,
}
Expand description
Parameters common to all OpenAI Chat models.
Refer to async-openai
’s CreateChatCompletionRequest
for exact details.
Fields§
§model: String
§temperature: f32
§top_p: f32
§stop: Vec<String>
§max_tokens: u64
§frequency_penalty: f32
§presence_penalty: f32
Trait Implementations§
Source§impl Clone for ChatModelParams
impl Clone for ChatModelParams
Source§fn clone(&self) -> ChatModelParams
fn clone(&self) -> ChatModelParams
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 moreAuto Trait Implementations§
impl Freeze for ChatModelParams
impl RefUnwindSafe for ChatModelParams
impl Send for ChatModelParams
impl Sync for ChatModelParams
impl Unpin for ChatModelParams
impl UnwindSafe for ChatModelParams
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