pub struct OpenAIImageModel { /* private fields */ }Expand description
OpenAI implementation of image model.
Implementations§
Trait Implementations§
Source§impl ImageModel for OpenAIImageModel
impl ImageModel for OpenAIImageModel
Source§fn max_images_per_call<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Option<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn max_images_per_call<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Option<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Limit of how many images can be generated in a single API call. Read more
Source§fn do_generate<'life0, 'async_trait>(
&'life0 self,
options: ImageGenerateOptions,
) -> Pin<Box<dyn Future<Output = Result<ImageGenerateResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn do_generate<'life0, 'async_trait>(
&'life0 self,
options: ImageGenerateOptions,
) -> Pin<Box<dyn Future<Output = Result<ImageGenerateResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Generates an array of images. Read more
Source§fn specification_version(&self) -> &str
fn specification_version(&self) -> &str
Specification version (always “v3”)
Auto Trait Implementations§
impl Freeze for OpenAIImageModel
impl !RefUnwindSafe for OpenAIImageModel
impl Send for OpenAIImageModel
impl Sync for OpenAIImageModel
impl Unpin for OpenAIImageModel
impl !UnwindSafe for OpenAIImageModel
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