Skip to content

Independent Auditing of AI Agents. Run by human or the agent itself, to answer the most crucial question in the AI Agent Economy. Is the agent doing what is supposed to do? With iFixAi you can have this answer in less than 120 seconds.

fix(defaults): replace shut-down Gemini and Bedrock default models (#367)

alexcastgonza182c0a9e2a8
diff --git a/ifixai/cli/model_catalog.py b/ifixai/cli/model_catalog.py
index d805c81..053e4f5 100644
--- a/ifixai/cli/model_catalog.py
+++ b/ifixai/cli/model_catalog.py
@@ -32,9 +32,9 @@ DEFAULT_MODEL: dict[str, str] = {
"openai": "gpt-4o",
"atlascloud": "qwen/qwen3.5-flash",
"anthropic": "claude-sonnet-4-6",
- "gemini": "gemini-2.0-flash",
+ "gemini": "gemini-3.6-flash",
"azure": "gpt-4o",
- "bedrock": "anthropic.claude-3-5-sonnet-20241022-v2:0",
+ "bedrock": "global.anthropic.claude-sonnet-4-6",
"huggingface": "meta-llama/Llama-3.3-70B-Instruct",
"minimax": MINIMAX_DEFAULT_MODEL,
}
@@ -99,7 +99,7 @@ MODEL_SUGGESTIONS: dict[str, list[tuple[str, str]]] = {
("claude-3-5-haiku-latest", "Fastest & cheapest Claude"),
],
"gemini": [
- ("gemini-2.0-flash", "Fast and inexpensive"),
+ ("gemini-3.6-flash", "Fast and inexpensive"),
("gemini-1.5-pro", "Larger context, stronger reasoning"),
],
"azure": [
@@ -107,7 +107,7 @@ MODEL_SUGGESTIONS: dict[str, list[tuple[str, str]]] = {
("gpt-4o-mini", "Cheaper/faster deployment"),
],
"bedrock": [
- ("anthropic.claude-3-5-sonnet-20241022-v2:0", "Claude 3.5 Sonnet on Bedrock"),
+ ("global.anthropic.claude-sonnet-4-6", "Claude Sonnet 4.6 on Bedrock"),
("anthropic.claude-3-5-haiku-20241022-v1:0", "Claude 3.5 Haiku on Bedrock"),
],
"huggingface": [
diff --git a/ifixai/providers/gemini.py b/ifixai/providers/gemini.py
index e1a01cd..1e4b63a 100644
--- a/ifixai/providers/gemini.py
+++ b/ifixai/providers/gemini.py
@@ -23,7 +23,7 @@ from ifixai.providers.base import (
)
from ifixai.providers.schemas import GeminiMessages
-DEFAULT_MODEL = "gemini-2.0-flash"
+DEFAULT_MODEL = "gemini-3.6-flash"
INITIAL_BACKOFF_SECONDS = 1.0
BACKOFF_MULTIPLIER = 2.0
diff --git a/ifixai/tests/test_model_catalog_defaults.py b/ifixai/tests/test_model_catalog_defaults.py
new file mode 100644
index 0000000..aff2fad
--- /dev/null
+++ b/ifixai/tests/test_model_catalog_defaults.py
@@ -0,0 +1,28 @@
+"""Default models must not be ones the vendor has already shut down."""
+
+import pytest
+
+from ifixai.cli.model_catalog import default_model, suggestions
+
+RETIRED_MODELS = {
+ "gemini-2.0-flash",
+ "anthropic.claude-3-5-sonnet-20241022-v2:0",
+}
+
+
+def test_gemini_provider_default_is_not_retired() -> None:
+ pytest.importorskip("google.generativeai")
+ from ifixai.providers import gemini
+
+ assert gemini.DEFAULT_MODEL not in RETIRED_MODELS
+ assert default_model("gemini") == gemini.DEFAULT_MODEL
+
+
+def test_gemini_and_bedrock_catalog_defaults_are_not_retired() -> None:
+ assert default_model("gemini") not in RETIRED_MODELS
+ assert default_model("bedrock") not in RETIRED_MODELS
+
+
+def test_gemini_and_bedrock_suggestions_are_not_retired() -> None:
+ for provider in ("gemini", "bedrock"):
+ assert not RETIRED_MODELS & {model for model, _ in suggestions(provider)}