File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
src/GenerativeAI/Constants Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,22 @@ public static class GoogleAIModels
1313 /// Represents the default Gemini AI model identifier used by the Generative AI services.
1414 /// </summary>
1515 public const string DefaultGeminiModel = Gemini15Flash ;
16-
16+
17+ ///<summary>
18+ /// Gemini 2.5 Flash
19+ /// </summary>
20+ public const string Gemini25Flash = "models/gemini-2.5-flash" ;
21+
1722 /// <summary>
1823 /// Gemini 2.0 Flash model name.
1924 /// </summary>
2025 public const string Gemini2Flash = "models/gemini-2.0-flash" ;
2126
27+ /// <summary>
28+ /// Gemini 2.5 Pro
29+ /// </summary>
30+ public const string Gemini25Pro = "models/gemini-2.5-pro" ;
31+
2232 /// <summary>
2333 /// Gemini 2.5 Pro Exp 03-25 model name.
2434 /// </summary>
@@ -81,10 +91,15 @@ public static class GoogleAIModels
8191 /// </summary>
8292 public const string Gemini2FlashExpImageGeneration = "gemini-2.0-flash-exp-image-generation" ;
8393
94+ /// <summary>
95+ /// The current Gemini Emedding model name.
96+ /// </summary>
97+ public const string GeminiEmbedding = "models/gemini-embedding-001" ;
8498
8599 /// <summary>
86100 /// Gemini 2.0 Flash Exp model name.
87101 /// </summary>
102+ [ Obsolete ( "Gemini-embedding-exp is deprecated. Use GeminiEmedding (gemini-embedding-001) instead." , false ) ]
88103 public const string GeminiEmbeddingExp = "gemini-embedding-exp" ;
89104 /// <summary>
90105 /// Gemma 3.0 27B model name.
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ public static class SupportedEmbedingModels
2727 {
2828 // From GeminiConstants
2929 GoogleAIModels . TextEmbedding ,
30+ GoogleAIModels . GeminiEmbedding ,
3031
3132 // From VertexAIModels.Embeddings
3233 VertexAIModels . Embeddings . TextEmbeddingGecko001 ,
You can’t perform that action at this time.
0 commit comments