pub struct ResponseTextParam {
pub format: TextResponseFormatConfiguration,
pub verbosity: Option<Verbosity>,
}Expand description
Configuration for text response format.
Fields§
§format: TextResponseFormatConfigurationAn object specifying the format that the model must output.
Configuring { "type": "json_schema" } enables Structured Outputs,
which ensures the model will match your supplied JSON schema. Learn more in the
Structured Outputs guide.
The default format is { "type": "text" } with no additional options.
Not recommended for gpt-4o and newer models:
Setting to { "type": "json_object" } enables the older JSON mode, which
ensures the message the model generates is valid JSON. Using json_schema
is preferred for models that support it.
verbosity: Option<Verbosity>Constrains the verbosity of the model’s response. Lower values will result in more concise responses, while higher values will result in more verbose responses.
Currently supported values are low, medium, and high.
Trait Implementations§
Source§impl Clone for ResponseTextParam
impl Clone for ResponseTextParam
Source§fn clone(&self) -> ResponseTextParam
fn clone(&self) -> ResponseTextParam
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResponseTextParam
impl Debug for ResponseTextParam
Source§impl<'de> Deserialize<'de> for ResponseTextParam
impl<'de> Deserialize<'de> for ResponseTextParam
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 ResponseTextParam
impl PartialEq for ResponseTextParam
Source§impl Serialize for ResponseTextParam
impl Serialize for ResponseTextParam
impl StructuralPartialEq for ResponseTextParam
Auto Trait Implementations§
impl Freeze for ResponseTextParam
impl RefUnwindSafe for ResponseTextParam
impl Send for ResponseTextParam
impl Sync for ResponseTextParam
impl Unpin for ResponseTextParam
impl UnwindSafe for ResponseTextParam
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)