pub struct CompletionRequestBuilder { /* private fields */ }Implementations§
Source§impl CompletionRequestBuilder
impl CompletionRequestBuilder
pub fn new() -> Self
pub fn with_intent(self, intent: bool) -> Self
pub fn with_model(self, model: String) -> Self
pub fn with_temperature(self, temperature: f32) -> Self
pub fn with_top_p(self, top_p: i32) -> Self
pub fn with_n(self, n: i32) -> Self
pub fn add_message(self, message: Message) -> Self
pub fn with_messages(self, messages: Vec<Message>) -> Self
pub async fn build(self) -> CompletionRequest
Auto Trait Implementations§
impl Freeze for CompletionRequestBuilder
impl RefUnwindSafe for CompletionRequestBuilder
impl Send for CompletionRequestBuilder
impl Sync for CompletionRequestBuilder
impl Unpin for CompletionRequestBuilder
impl UnwindSafe for CompletionRequestBuilder
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