pub struct CreateCompletionResponse {
pub choices: Vec<CreateCompletionResponseChoices>,
pub created: i32,
pub id: String,
pub model: String,
pub object: String,
pub system_fingerprint: Option<String>,
pub usage: Option<CompletionUsage>,
}
Fields§
§choices: Vec<CreateCompletionResponseChoices>
The list of completion choices the model generated for the input prompt.
created: i32
The Unix timestamp (in seconds) of when the completion was created.
id: String
A unique identifier for the completion.
model: String
The model used for completion.
object: String
The object type, which is always "text_completion"
system_fingerprint: Option<String>
This fingerprint represents the backend configuration that the model runs with. Can be used in conjunction with the seed
request parameter to understand when backend changes have been made that might impact determinism.
usage: Option<CompletionUsage>
Trait Implementations§
Source§impl Debug for CreateCompletionResponse
impl Debug for CreateCompletionResponse
Source§impl<'de> Deserialize<'de> for CreateCompletionResponse
impl<'de> Deserialize<'de> for CreateCompletionResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CreateCompletionResponse
impl RefUnwindSafe for CreateCompletionResponse
impl Send for CreateCompletionResponse
impl Sync for CreateCompletionResponse
impl Unpin for CreateCompletionResponse
impl UnwindSafe for CreateCompletionResponse
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