From 9e81aff676e9c0282c7f4a51fcffae70413a86b1 Mon Sep 17 00:00:00 2001 From: Ayham Joumran <140757050+AyhamJo7@users.noreply.github.com> Date: Sun, 22 Nov 2026 18:21:24 +0100 Subject: [PATCH] fix(configs): point the templates at Gemini models that are still served configs/default_config.yaml and configs/island_config_example.yaml, the files users copy to start a run, used gemini-2.0-flash-lite and gemini-2.0-flash. Google shut both down on 2026-06-01, so a run started from either template fails every LLM call. Use the replacements Google names, gemini-3.1-flash-lite and gemini-3.6-flash, and test that the templates name no shut-down model. --- configs/default_config.yaml | 8 ++++---- configs/island_config_example.yaml | 4 ++-- tests/test_valid_configs.py | 20 ++++++++++++++++++++ 3 files changed, 26 insertions(+), 6 deletions(-) diff --git a/configs/default_config.yaml b/configs/default_config.yaml index 9f7ed90b6e..5e42bafb91 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 700a7d500e..a61f3c5917 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 ec46bd6a44..e063888b9f 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()