pub struct GptBatchAPIRequest { /* private fields */ }
Expand description
Represents the complete request structure.
Implementations§
Source§impl GptBatchAPIRequest
impl GptBatchAPIRequest
pub fn custom_id(&self) -> &CustomRequestId
Source§impl GptBatchAPIRequest
impl GptBatchAPIRequest
pub fn requests_from_query_strings( system_message: &str, model: GptModelType, queries: &[String], ) -> Vec<Self>
pub fn new_basic( model: GptModelType, idx: usize, system_message: &str, user_message: &str, ) -> Self
pub fn new_with_image( model: GptModelType, idx: usize, system_message: &str, user_message: &str, image_b64: &str, ) -> Self
Trait Implementations§
Source§impl Debug for GptBatchAPIRequest
impl Debug for GptBatchAPIRequest
Source§impl<'de> Deserialize<'de> for GptBatchAPIRequest
impl<'de> Deserialize<'de> for GptBatchAPIRequest
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
Source§impl Display for GptBatchAPIRequest
impl Display for GptBatchAPIRequest
Source§impl From<GptBatchAPIRequest> for BatchRequestInput
impl From<GptBatchAPIRequest> for BatchRequestInput
Source§fn from(request: GptBatchAPIRequest) -> Self
fn from(request: GptBatchAPIRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GptBatchAPIRequest
impl RefUnwindSafe for GptBatchAPIRequest
impl Send for GptBatchAPIRequest
impl Sync for GptBatchAPIRequest
impl Unpin for GptBatchAPIRequest
impl UnwindSafe for GptBatchAPIRequest
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
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.