pub struct ModelResponseProperties {
pub metadata: Option<Metadata>,
pub top_logprobs: Option<ModelResponsePropertiesTopLogprobs>,
pub temperature: Option<ModelResponsePropertiesTemperature>,
pub top_p: Option<ModelResponsePropertiesTopP>,
pub user: Option<String>,
pub safety_identifier: Option<String>,
pub prompt_cache_key: Option<String>,
pub service_tier: Option<ServiceTier>,
pub prompt_cache_retention: Option<ModelResponsePropertiesPromptCacheRetention>,
}Fields§
§metadata: Option<Metadata>§top_logprobs: Option<ModelResponsePropertiesTopLogprobs>§temperature: Option<ModelResponsePropertiesTemperature>§top_p: Option<ModelResponsePropertiesTopP>§user: Option<String>This field is being replaced by safety_identifier and prompt_cache_key. Use prompt_cache_key instead to maintain caching optimizations.
A stable identifier for your end-users.
Used to boost cache hit rates by better bucketing similar requests and to help OpenAI detect and prevent abuse. Learn more.
safety_identifier: Option<String>A stable identifier used to help detect users of your application that may be violating OpenAI’s usage policies. The IDs should be a string that uniquely identifies each user, with a maximum length of 64 characters. We recommend hashing their username or email address, in order to avoid sending us any identifying information. Learn more.
prompt_cache_key: Option<String>Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the user field. Learn more.
service_tier: Option<ServiceTier>§prompt_cache_retention: Option<ModelResponsePropertiesPromptCacheRetention>Trait Implementations§
Source§impl Clone for ModelResponseProperties
impl Clone for ModelResponseProperties
Source§fn clone(&self) -> ModelResponseProperties
fn clone(&self) -> ModelResponseProperties
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ModelResponseProperties
impl Debug for ModelResponseProperties
Source§impl<'de> Deserialize<'de> for ModelResponseProperties
impl<'de> Deserialize<'de> for ModelResponseProperties
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>,
Source§impl PartialEq for ModelResponseProperties
impl PartialEq for ModelResponseProperties
Source§fn eq(&self, other: &ModelResponseProperties) -> bool
fn eq(&self, other: &ModelResponseProperties) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for ModelResponseProperties
impl Serialize for ModelResponseProperties
impl StructuralPartialEq for ModelResponseProperties
Auto Trait Implementations§
impl Freeze for ModelResponseProperties
impl RefUnwindSafe for ModelResponseProperties
impl Send for ModelResponseProperties
impl Sync for ModelResponseProperties
impl Unpin for ModelResponseProperties
impl UnsafeUnpin for ModelResponseProperties
impl UnwindSafe for ModelResponseProperties
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more