pub struct CreateModelResponseProperties {
pub metadata: Option<Metadata>,
pub top_logprobs: Option<CreateModelResponsePropertiesTopLogprobs>,
pub temperature: Option<CreateModelResponsePropertiesTemperature>,
pub top_p: Option<CreateModelResponsePropertiesTopP>,
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<CreateModelResponsePropertiesPromptCacheRetention>,
}Fields§
§metadata: Option<Metadata>§top_logprobs: Option<CreateModelResponsePropertiesTopLogprobs>§temperature: Option<CreateModelResponsePropertiesTemperature>§top_p: Option<CreateModelResponsePropertiesTopP>§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<CreateModelResponsePropertiesPromptCacheRetention>Trait Implementations§
Source§impl Clone for CreateModelResponseProperties
impl Clone for CreateModelResponseProperties
Source§fn clone(&self) -> CreateModelResponseProperties
fn clone(&self) -> CreateModelResponseProperties
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'de> Deserialize<'de> for CreateModelResponseProperties
impl<'de> Deserialize<'de> for CreateModelResponseProperties
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 CreateModelResponseProperties
impl PartialEq for CreateModelResponseProperties
Source§fn eq(&self, other: &CreateModelResponseProperties) -> bool
fn eq(&self, other: &CreateModelResponseProperties) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateModelResponseProperties
Auto Trait Implementations§
impl Freeze for CreateModelResponseProperties
impl RefUnwindSafe for CreateModelResponseProperties
impl Send for CreateModelResponseProperties
impl Sync for CreateModelResponseProperties
impl Unpin for CreateModelResponseProperties
impl UnsafeUnpin for CreateModelResponseProperties
impl UnwindSafe for CreateModelResponseProperties
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