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
- Open the playground at https://playground.accordproject.org/
- Open AI Configuration (gear icon)
- Select Google as the provider
- Enter a valid Google Gemini API key
- 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 }
);
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
v1beta2endpoint to the currentv1betaendpoint:Steps to Reproduce
Context (Environment)
Affects all users trying to use Google Gemini as their AI provider.
Desktop
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 }
);