fix(providers): add ProviderType.GEMINI to ProviderRegistry.FALLBACK_ORDER #11110

Closed
HAL9000 wants to merge 1 commits from fix/gemini-fallback-order into master
2 changed files with 2 additions and 1 deletions
@@ -3,7 +3,7 @@ Feature: TDD: ProviderType.GEMINI missing from ProviderRegistry.FALLBACK_ORDER
I want get_default_provider_type() to return ProviderType.GEMINI via the fallback chain
So that Gemini-only users can use auto-discovery without setting GOOGLE_API_KEY
@tdd_issue @tdd_issue_4750 @tdd_expected_fail
@tdd_issue @tdd_issue_4750
Review

Correct: The @tdd_expected_fail tag has been properly removed now that the fix is applied. The @tdd_issue and @tdd_issue_4750 tags are retained correctly as permanent regression guards. No changes needed here.

✅ Correct: The `@tdd_expected_fail` tag has been properly removed now that the fix is applied. The `@tdd_issue` and `@tdd_issue_4750` tags are retained correctly as permanent regression guards. No changes needed here.
Scenario: Gemini-only user gets GEMINI as default provider via fallback order
Given a ProviderRegistry configured with only gemini_api_key set
And CLEVERAGENTS_DEFAULT_PROVIDER is not set for tdd test
+1
View File
1
@@ -220,6 +220,7 @@ class ProviderRegistry:
ProviderType.OPENAI,
ProviderType.ANTHROPIC,
ProviderType.GOOGLE,
ProviderType.GEMINI,
ProviderType.AZURE,
ProviderType.OPENROUTER,
ProviderType.GROQ,