diff --git a/configs/default_config.yaml b/configs/default_config.yaml index 9f7ed90b6..5e42bafb9 100644 --- a/configs/default_config.yaml +++ b/configs/default_config.yaml @@ -26,17 +26,17 @@ llm: # Models for evolution models: # List of available models with their weights - - name: "gemini-2.0-flash-lite" + - name: "gemini-3.1-flash-lite" weight: 0.8 - - name: "gemini-2.0-flash" + - name: "gemini-3.6-flash" weight: 0.2 # Models for LLM feedback evaluator_models: # List of available models with their weights - - name: "gemini-2.0-flash-lite" + - name: "gemini-3.1-flash-lite" weight: 0.8 - - name: "gemini-2.0-flash" + - name: "gemini-3.6-flash" weight: 0.2 # API configuration diff --git a/configs/island_config_example.yaml b/configs/island_config_example.yaml index 700a7d500..a61f3c591 100644 --- a/configs/island_config_example.yaml +++ b/configs/island_config_example.yaml @@ -8,9 +8,9 @@ log_level: "INFO" # LLM configuration llm: - primary_model: "gemini-2.0-flash-lite" + primary_model: "gemini-3.1-flash-lite" primary_model_weight: 0.8 - secondary_model: "gemini-2.0-flash" + secondary_model: "gemini-3.6-flash" secondary_model_weight: 0.2 temperature: 0.7 top_p: 0.95 diff --git a/tests/test_valid_configs.py b/tests/test_valid_configs.py index ec46bd6a4..e063888b9 100644 --- a/tests/test_valid_configs.py +++ b/tests/test_valid_configs.py @@ -36,6 +36,26 @@ def test_import_config_files(self): ) self.assertTrue(len(config.llm.models) > 0) + @patch.dict(os.environ, {"ANTHROPIC_API_KEY": "test-key-for-validation"}) + def test_template_configs_name_served_gemini_models(self): + """The configs/ templates name no Gemini model Google has shut down + + Shutdown dates: https://ai.google.dev/gemini-api/docs/deprecations + """ + shut_down = { + "gemini-2.0-flash", + "gemini-2.0-flash-001", + "gemini-2.0-flash-lite", + "gemini-2.0-flash-lite-001", + } + config_dir = os.path.join(os.path.dirname(__file__), "../configs") + for file in sorted(os.listdir(config_dir)): + if not file.endswith(".yaml"): + continue + config = load_config(os.path.join(config_dir, file)) + for model in config.llm.models + config.llm.evaluator_models: + self.assertNotIn(model.name, shut_down, f"{file} names {model.name}") + if __name__ == "__main__": unittest.main()