Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions configs/default_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions configs/island_config_example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 20 additions & 0 deletions tests/test_valid_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()