18 views
-/https://github.com/berriai/litellm/issues/24795
GitHub · issue

#24795 [Bug]: OpenRouter model selected from Admin UI list fails Test Connect with 'is not a valid model ID'

  • State: open
  • Author: @Sunsilkk
  • Labels: llm translation, stale

## What happened?

In LiteLLM Admin UI, when adding a model with provider `OpenRouter`, I selected `openrouter/google/gemini-2.5-flash` directly from the provider model list/dropdown.

When I click `Test Connect`, the request fails with:

```text OpenrouterException - {"error":{"message":"openrouter/google/gemini-2.5-flash is not a valid model ID","code":400},"user_id":"..."} ```

This does not appear to be a manual input error, because the model was selected from the OpenRouter model list in the UI.

## Why this seems incorrect

As of March 30, 2026, `google/gemini-2.5-flash` still exists on OpenRouter: https://openrouter.ai/google/gemini-2.5-flash

So either: 1. LiteLLM Admin UI is surfacing a stale or invalid OpenRouter model ID. 2. The `Test Connect` flow is sending a model name format that OpenRouter rejects. 3. There is a mismatch between what the dropdown returns and what the backend/OpenRouter expects.

## Reproduction

1. Open LiteLLM Admin UI. 2. Go to `Models + Endpoints` -> `Add Model`. 3. Choose provider: `OpenRouter`. 4. Select model from the provider model list: `openrouter/google/gemini-2.5-flash`. 5. Click `Test Connect`.

## Actual result

Connection test fails wi…

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (1 events)
#0 of 0 · 31d17h55m2s ago — entered · #import:https:::github.com:berriai:litellm post #3047
#30778 has greater implementation difficulty because it spans shared HTTP transport construction, request execution, retry recreation, configuration propagation, and regression testing across multiple request methods. #24795 is comparatively narrower, likely requiring model identifier normalization or correction at a UI/API boundary.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search