pub struct CompletionRequest {Show 16 fields
pub model: String,
pub prompt: Option<String>,
pub suffix: Option<String>,
pub max_tokens: Option<i32>,
pub temperature: Option<f32>,
pub top_p: Option<f32>,
pub n: Option<i32>,
pub stream: Option<bool>,
pub logprobs: Option<i32>,
pub echo: Option<bool>,
pub stop: Option<Vec<String>>,
pub presence_penalty: Option<f32>,
pub frequency_penalty: Option<f32>,
pub best_of: Option<i32>,
pub logit_bias: Option<HashMap<String, i32>>,
pub user: Option<String>,
}
Formats the value using the given formatter.
Read more
Serialize this value into the given Serde serializer.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Instruments this type with the provided
Span
, returning an
Instrumented
wrapper.
Read more
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.