pub enum ImageModel {
DallE2,
DallE3,
GptImage1,
GptImage1Mini,
GptImage1_5,
GptImage2,
ChatGptImageLatest,
}Expand description
Image generation models.
§DALL-E retirement
OpenAI retired dall-e-2 and dall-e-3 on api.openai.com - requests
naming them fail with “The model ‘dall-e-3’ does not exist.” The variants
are kept because Azure OpenAI deployments can still serve DALL-E, but new
OpenAI code should use one of the GPT Image models.
Variants§
DallE2
DALL-E 2 model - supports variations, smaller sizes
Retired on OpenAI; may still exist as an Azure deployment.
DallE3
DALL-E 3 model - higher quality, HD support, style options
Retired on OpenAI; may still exist as an Azure deployment.
GptImage1
GPT Image model - latest generation (default)
GptImage1Mini
GPT Image 1 Mini - cheaper gpt-image-1 for high-volume generation
GptImage1_5
GPT Image 1.5 - refreshed gpt-image-1
GptImage2
GPT Image 2 - state-of-the-art generation and editing
ChatGptImageLatest
ChatGPT Image Latest - image model currently used in ChatGPT
Requires a verified organization.
Implementations§
Trait Implementations§
Source§impl Clone for ImageModel
impl Clone for ImageModel
Source§fn clone(&self) -> ImageModel
fn clone(&self) -> ImageModel
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ImageModel
Source§impl Debug for ImageModel
impl Debug for ImageModel
Source§impl Default for ImageModel
impl Default for ImageModel
Source§fn default() -> ImageModel
fn default() -> ImageModel
Source§impl<'de> Deserialize<'de> for ImageModel
impl<'de> Deserialize<'de> for ImageModel
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 Display for ImageModel
impl Display for ImageModel
impl Eq for ImageModel
Source§impl PartialEq for ImageModel
impl PartialEq for ImageModel
Source§impl Serialize for ImageModel
impl Serialize for ImageModel
impl StructuralPartialEq for ImageModel
Auto Trait Implementations§
impl Freeze for ImageModel
impl RefUnwindSafe for ImageModel
impl Send for ImageModel
impl Sync for ImageModel
impl Unpin for ImageModel
impl UnsafeUnpin for ImageModel
impl UnwindSafe for ImageModel
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().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.