pub struct GptRequestBody { /* private fields */ }
Expand description
Body details of the API request.
Implementations§
Source§impl GptRequestBody
impl GptRequestBody
pub fn default_max_tokens() -> u32
pub fn default_max_tokens_given_image(_image_b64: &str) -> u32
pub fn new_basic( model: GptModelType, system_message: &str, user_message: &str, ) -> Self
pub fn new_with_image( model: GptModelType, system_message: &str, user_message: &str, image_b64: &str, ) -> Self
Trait Implementations§
Source§impl Debug for GptRequestBody
impl Debug for GptRequestBody
Source§impl<'de> Deserialize<'de> for GptRequestBody
impl<'de> Deserialize<'de> for GptRequestBody
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 GptRequestBody
impl RefUnwindSafe for GptRequestBody
impl Send for GptRequestBody
impl Sync for GptRequestBody
impl Unpin for GptRequestBody
impl UnwindSafe for GptRequestBody
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