pub struct CompletionRequestBuilder { /* private fields */ }
Expand description
Builder for CompletionRequest
.
Implementations§
Source§impl CompletionRequestBuilder
impl CompletionRequestBuilder
pub fn model<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn prompt<VALUE: Into<StringOrListParam>>( &mut self, value: VALUE, ) -> &mut Self
pub fn suffix<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn max_tokens<VALUE: Into<i64>>(&mut self, value: VALUE) -> &mut Self
pub fn temperature<VALUE: Into<i64>>(&mut self, value: VALUE) -> &mut Self
pub fn top_p<VALUE: Into<i64>>(&mut self, value: VALUE) -> &mut Self
pub fn n<VALUE: Into<i64>>(&mut self, value: VALUE) -> &mut Self
pub fn stream<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn logprobs<VALUE: Into<i64>>(&mut self, value: VALUE) -> &mut Self
pub fn echo<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn stop<VALUE: Into<StringOrListParam>>( &mut self, value: VALUE, ) -> &mut Self
pub fn presence_penalty<VALUE: Into<i64>>(&mut self, value: VALUE) -> &mut Self
pub fn frequency_penalty<VALUE: Into<i64>>(&mut self, value: VALUE) -> &mut Self
pub fn best_of<VALUE: Into<i64>>(&mut self, value: VALUE) -> &mut Self
pub fn logit_bias<VALUE: Into<HashMap<String, i64>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn user<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn build(&self) -> Result<CompletionRequest, CompletionRequestBuilderError>
pub fn build(&self) -> Result<CompletionRequest, CompletionRequestBuilderError>
Trait Implementations§
Source§impl Clone for CompletionRequestBuilder
impl Clone for CompletionRequestBuilder
Source§fn clone(&self) -> CompletionRequestBuilder
fn clone(&self) -> CompletionRequestBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto 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