UAT: ProviderType.GEMINI missing from FALLBACK_ORDER — GEMINI-only users never get a provider selected #5810

Open
opened 2026-04-09 10:06:02 +00:00 by HAL9000 · 1 comment
Owner

Bug Report

Feature Area: LLM Provider Backends
Milestone: v3.6.0
Severity: Priority/Backlog (GEMINI users affected when using fallback selection)

What Was Tested

Code-level analysis of src/cleveragents/providers/registry.py FALLBACK_ORDER and PROVIDER_KEY_ATTRS class variables.

Expected Behavior

ProviderType.GEMINI is a fully registered provider type with:

  • PROVIDER_KEY_ATTRS[GEMINI] = "gemini_api_key"
  • DEFAULT_CAPABILITIES[GEMINI] defined ✓
  • DEFAULT_MODELS[GEMINI] = "gemini-2.0-flash"

It should be included in the fallback order so that users who configure only GEMINI_API_KEY can have it automatically selected.

Actual Behavior

FALLBACK_ORDER in src/cleveragents/providers/registry.py (lines 204-213):

FALLBACK_ORDER: ClassVar[list[ProviderType]] = [
    ProviderType.OPENAI,
    ProviderType.ANTHROPIC,
    ProviderType.GOOGLE,      # ← GOOGLE is included
    ProviderType.AZURE,
    ProviderType.OPENROUTER,
    ProviderType.GROQ,
    ProviderType.TOGETHER,
    ProviderType.COHERE,
    # ProviderType.GEMINI is MISSING
]

ProviderType.GEMINI is absent from FALLBACK_ORDER. This means:

  1. ProviderRegistry.get_default_provider_type() will never return GEMINI via fallback
  2. FallbackSelector.select() will never select GEMINI
  3. Users who set only GEMINI_API_KEY (without GOOGLE_API_KEY) will get "No AI provider configured" errors

Note: GOOGLE and GEMINI are separate provider types — GOOGLE uses GOOGLE_API_KEY while GEMINI uses GEMINI_API_KEY. A user who sets only GEMINI_API_KEY will not be served by the GOOGLE entry in FALLBACK_ORDER.

Code Location

  • FALLBACK_ORDER: src/cleveragents/providers/registry.py lines 204-213
  • PROVIDER_KEY_ATTRS: src/cleveragents/providers/registry.py lines 191-201

Impact

Users who configure GEMINI_API_KEY (the standard Google Gemini API key) instead of GOOGLE_API_KEY will not have their provider auto-selected. The FallbackSelector will also never select GEMINI as a fallback provider.


Automated by CleverAgents Bot
Supervisor: UAT Testing | Agent: uat-tester

## Bug Report **Feature Area**: LLM Provider Backends **Milestone**: v3.6.0 **Severity**: Priority/Backlog (GEMINI users affected when using fallback selection) ## What Was Tested Code-level analysis of `src/cleveragents/providers/registry.py` `FALLBACK_ORDER` and `PROVIDER_KEY_ATTRS` class variables. ## Expected Behavior `ProviderType.GEMINI` is a fully registered provider type with: - `PROVIDER_KEY_ATTRS[GEMINI] = "gemini_api_key"` ✓ - `DEFAULT_CAPABILITIES[GEMINI]` defined ✓ - `DEFAULT_MODELS[GEMINI] = "gemini-2.0-flash"` ✓ It should be included in the fallback order so that users who configure only `GEMINI_API_KEY` can have it automatically selected. ## Actual Behavior `FALLBACK_ORDER` in `src/cleveragents/providers/registry.py` (lines 204-213): ```python FALLBACK_ORDER: ClassVar[list[ProviderType]] = [ ProviderType.OPENAI, ProviderType.ANTHROPIC, ProviderType.GOOGLE, # ← GOOGLE is included ProviderType.AZURE, ProviderType.OPENROUTER, ProviderType.GROQ, ProviderType.TOGETHER, ProviderType.COHERE, # ProviderType.GEMINI is MISSING ] ``` `ProviderType.GEMINI` is absent from `FALLBACK_ORDER`. This means: 1. `ProviderRegistry.get_default_provider_type()` will never return `GEMINI` via fallback 2. `FallbackSelector.select()` will never select `GEMINI` 3. Users who set only `GEMINI_API_KEY` (without `GOOGLE_API_KEY`) will get "No AI provider configured" errors Note: `GOOGLE` and `GEMINI` are separate provider types — `GOOGLE` uses `GOOGLE_API_KEY` while `GEMINI` uses `GEMINI_API_KEY`. A user who sets only `GEMINI_API_KEY` will not be served by the `GOOGLE` entry in `FALLBACK_ORDER`. ## Code Location - **FALLBACK_ORDER**: `src/cleveragents/providers/registry.py` lines 204-213 - **PROVIDER_KEY_ATTRS**: `src/cleveragents/providers/registry.py` lines 191-201 ## Impact Users who configure `GEMINI_API_KEY` (the standard Google Gemini API key) instead of `GOOGLE_API_KEY` will not have their provider auto-selected. The `FallbackSelector` will also never select GEMINI as a fallback provider. --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: uat-tester
HAL9000 added this to the v3.6.0 milestone 2026-04-09 10:26:11 +00:00
Author
Owner

Label compliance fix applied:

  • Added missing labels and/or milestone to bring issue into compliance with CONTRIBUTING.md

Automated by CleverAgents Bot
Supervisor: Backlog Grooming | Agent: backlog-groomer

Label compliance fix applied: - Added missing labels and/or milestone to bring issue into compliance with CONTRIBUTING.md --- **Automated by CleverAgents Bot** Supervisor: Backlog Grooming | Agent: backlog-groomer
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
cleveragents/cleveragents-core#5810
No description provided.