Repository navigation
Conversation
- Add gemini-4-argon, gemini-3.8-flash, gemini-3.6-flash, gemini-3.5-flash-lite and gemini-embedding-2. - Mark models that Google has replaced or shut down as deprecated. No model is removed. - Use gemini-embedding-001 as the default embedding model. text-embedding-004 now returns 404. Signed-off-by: Charles <azanux@gmail.com>
- Point deprecated text-embedding-004/005 to gemini-embedding-001, the default embedding model. - Test the default embedding model and the deprecated constants. - Add a live test that calls every embedding model and checks the vector size. Signed-off-by: Charles <azanux@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Updates the Google GenAI (Gemini) model list to match what Google offers today. Every model was checked with a real API call.
No model is removed, so existing code keeps compiling.
Changes
New models
gemini-4-argongemini-3.8-flashgemini-3.6-flashgemini-3.5-flash-litegemini-embedding-2Google has announced that 3.8 Flash and 3.6 Flash will cost $1.50 / $7.50 from January 1, 2027. The YAML file notes this.
Deprecated models
These constants are now marked
@Deprecated. Their YAML entries are kept, with a comment.GEMINI_3_5_FLASHGEMINI_3_6_FLASHGEMINI_3_FLASH_PREVIEWGEMINI_3_6_FLASHGEMINI_3_1_FLASH_LITE_PREVIEWGEMINI_3_1_FLASH_LITETEXT_EMBEDDING_004GEMINI_EMBEDDING_001TEXT_EMBEDDING_005GEMINI_EMBEDDING_001Default embedding model fixed
DEFAULT_TEXT_EMBEDDING_MODELpointed totext-embedding-004, which Google shut down. Any call to it returns 404. It now points togemini-embedding-001, which is already declared in the YAML file.Docs
The model list on the installation page now includes the new models and marks the deprecated ones.
Tests
GoogleGenAiModelLoaderTest: checks that the new models are loaded and that the default embedding model is declared in the YAML file.GoogleGenAiModelsTest(new): checks the default embedding model and that the deprecated embedding constants point toGEMINI_EMBEDDING_001.GoogleGenAiAllModelsIT: calls every declared chat model with a real API key (14/14 pass).GoogleGenAiEmbeddingIT(new): calls every embedding model and checks the vector size (3/3 pass).Closes #2157