pub struct SyncChatCompletionBuilder { /* private fields */ }Expand description
Blocking wrapper for ChatCompletionBuilder.
Implementations§
Source§impl SyncChatCompletionBuilder
impl SyncChatCompletionBuilder
Sourcepub fn tool_choice(self, choice: ToolChoice) -> Self
pub fn tool_choice(self, choice: ToolChoice) -> Self
Set tool choice.
Sourcepub fn temperature(self, temperature: f32) -> Self
pub fn temperature(self, temperature: f32) -> Self
Set temperature.
Sourcepub fn max_tokens(self, max_tokens: u32) -> Self
pub fn max_tokens(self, max_tokens: u32) -> Self
Set max tokens.
Sourcepub fn response_format(self, format: ResponseFormat) -> Self
pub fn response_format(self, format: ResponseFormat) -> Self
Set response format.
Sourcepub fn presence_penalty(self, penalty: f32) -> Self
pub fn presence_penalty(self, penalty: f32) -> Self
Set presence penalty.
Sourcepub fn frequency_penalty(self, penalty: f32) -> Self
pub fn frequency_penalty(self, penalty: f32) -> Self
Set frequency penalty.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SyncChatCompletionBuilder
impl !RefUnwindSafe for SyncChatCompletionBuilder
impl Send for SyncChatCompletionBuilder
impl Sync for SyncChatCompletionBuilder
impl Unpin for SyncChatCompletionBuilder
impl UnsafeUnpin for SyncChatCompletionBuilder
impl !UnwindSafe for SyncChatCompletionBuilder
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