Skip to content

Google AI provider: model list never loads due to deprecated v1beta2 API endpointΒ #854

@Divyansh2992

Description

@Divyansh2992

Bug Report πŸ›

Google AI provider shows "No models available" β€” wrong API endpoint

Expected Behavior

When a user selects Google as the AI provider and enters a valid Gemini API key,the Model dropdown should populate with their available Gemini models(e.g. gemini-2.0-flash, gemini-1.5-pro).

Current Behavior

The model dropdown always shows "No models available" regardless of the API key.The app silently fails β€” no error is shown to the user.

Possible Solution

Update the fetch URL in AIConfigPopup.tsx from the deprecated v1beta2 endpoint to the current v1beta endpoint:

Steps to Reproduce

  1. Open the playground at https://playground.accordproject.org/
  2. Open AI Configuration (gear icon)
  3. Select Google as the provider
  4. Enter a valid Google Gemini API key
  5. Observe: the Model dropdown shows "No models available" and you cannot proceed

Context (Environment)

Affects all users trying to use Google Gemini as their AI provider.

Desktop

  • OS: Any
  • Browser: Any (Chrome, Firefox, Safari)
  • Version: Latest (playground.accordproject.org)

Detailed Description

In src/components/AIConfigPopup.tsx, the fetch call to list available Google models uses the deprecated v1beta2 endpoint which no longer exists. Google's current Generative Language API uses v1beta. The v1beta2 URL returns a 404 Not Found, which the code silently swallows (logs to console only), leaving the model list empty. Since the Save button is disabled when no model is selected, users are completely blocked from using Google AI.

Possible Implementation

Single line change in AIConfigPopup.tsx:

// Line ~195
const res = await fetch(
'https://generativelanguage.googleapis.com/v1beta/models',
{ headers: { 'x-goog-api-key': apiKey }, signal }
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions