From 5d7326a90e031c4c2bfe4708d63c91b7ae80709a Mon Sep 17 00:00:00 2001 From: liuhao1024 Date: Wed, 1 Jul 2026 05:01:17 +0800 Subject: [PATCH] fix(gmi): add claude-sonnet-5 to fallback_models The test test_provider_model_ids_falls_back_to_static_models asserts provider_model_ids('gmi') == list(_PROVIDER_MODELS['gmi']), but when live API is unavailable the function returns fallback_models from the provider profile instead of _PROVIDER_MODELS. Add claude-sonnet-5 to the GMI plugin's fallback_models to match the curated list update. --- plugins/model-providers/gmi/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/model-providers/gmi/__init__.py b/plugins/model-providers/gmi/__init__.py index fb0220708038..a273bddb9cbd 100644 --- a/plugins/model-providers/gmi/__init__.py +++ b/plugins/model-providers/gmi/__init__.py @@ -24,6 +24,7 @@ gmi = ProviderProfile( "moonshotai/Kimi-K2.5", "google/gemini-3.1-flash-lite-preview", "anthropic/claude-sonnet-4.6", + "anthropic/claude-sonnet-5", "openai/gpt-5.4", ), )