pub enum Models {
Show 21 variants
Gemini15ProExp0827,
Gemini15FlashExp0827,
Gemini15Flash8bExp0827,
Gemini15Pro,
Gemini2FlashExp,
Gemini2Exp1206,
Gemini15Flash,
Gemini10Pro,
Gemma2_2bIt,
Gemma2_9bIt,
Gemma2_27bIt,
Gemini2Flash,
Gemini2FlashLite,
Gemini25ProPreview0325,
Gemini25ProExp0325,
Gemini25FlashPreview0417,
Gemma3_1b,
Gemma3_4b,
Gemma3_12b,
Gemma3_27b,
Custom(String),
}
Expand description
Enum representing different Gemini API models.
This enum includes various versions of Gemini models, including experimental
and stable versions. The default model is set to Gemini15Pro
.
Variants§
Gemini15ProExp0827
👎Deprecated: Use custom model instead, if you need to use older models
Experimental Gemini 1.5 Pro model (version 0827)
Gemini15FlashExp0827
👎Deprecated: Use custom model instead, if you need to use older models
Experimental Gemini 1.5 Flash model (version 0827)
Gemini15Flash8bExp0827
👎Deprecated: Use custom model instead, if you need to use older models
Experimental Gemini 1.5 Flash 8B model (version 0827)
Gemini15Pro
👎Deprecated: Use custom model instead, if you need to use older models
Gemini 1.5 Pro model
Gemini2FlashExp
👎Deprecated: Use custom model instead, if you need to use older models
Default Gemini 2 Flash Experimental model
Gemini2Exp1206
👎Deprecated: Use custom model instead, if you need to use older models
Gemini 2 Experimental model
Gemini15Flash
👎Deprecated: Use custom model instead, if you need to use older models
Gemini 1.5 Flash model
Gemini10Pro
👎Deprecated: Use custom model instead, if you need to use older models
Gemini 1.0 Pro model
Gemma2_2bIt
👎Deprecated: Use custom model instead, if you need to use older models
Gemma 2 2B IT model
Gemma2_9bIt
👎Deprecated: Use custom model instead, if you need to use older models
Gemma 2 9B IT model
Gemma2_27bIt
👎Deprecated: Use custom model instead, if you need to use older models
Gemma 2 27B IT model
Gemini2Flash
Gemini2FlashLite
Gemini25ProPreview0325
Gemini25ProExp0325
Gemini25FlashPreview0417
Gemma3_1b
Gemma3_4b
Gemma3_12b
Gemma3_27b
Custom(String)
Custom model
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Models
impl<'de> Deserialize<'de> for Models
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 Models
impl RefUnwindSafe for Models
impl Send for Models
impl Sync for Models
impl Unpin for Models
impl UnwindSafe for Models
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