Compare commits

...

1 Commits

Author SHA1 Message Date
HAL9000 e9cf6d9658 fix(providers): add ProviderType.GEMINI to ProviderRegistry.FALLBACK_ORDER
CI / benchmark-publish (pull_request) Has been skipped
CI / push-validation (pull_request) Successful in 52s
CI / helm (pull_request) Successful in 56s
CI / build (pull_request) Successful in 1m13s
CI / benchmark-regression (pull_request) Failing after 1m41s
CI / quality (pull_request) Successful in 1m51s
CI / lint (pull_request) Successful in 1m55s
CI / typecheck (pull_request) Successful in 2m2s
CI / security (pull_request) Successful in 2m1s
CI / integration_tests (pull_request) Successful in 4m0s
CI / e2e_tests (pull_request) Successful in 5m10s
CI / unit_tests (pull_request) Successful in 5m25s
CI / docker (pull_request) Successful in 2m0s
CI / coverage (pull_request) Successful in 10m54s
CI / status-check (pull_request) Successful in 3s
Adds ProviderType.GEMINI to the provider registry fallback order, right after
ProviderType.GOOGLE. This ensures Gemini-only users can use auto-discovery via
get_default_provider_type() when only GEMINI_API_KEY is set.

Also removes the @tdd_expected_fail tag from the TDD scenario in features/
tdd_gemini_fallback_order_4750.feature since the test now passes.
2026-05-11 00:56:34 +00:00
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
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
@@ -220,6 +220,7 @@ class ProviderRegistry:
ProviderType.OPENAI,
ProviderType.ANTHROPIC,
ProviderType.GOOGLE,
ProviderType.GEMINI,
ProviderType.AZURE,
ProviderType.OPENROUTER,
ProviderType.GROQ,