Skip to content

Commit 67f8852

Browse files
SebConejoclaude
andauthored
Fix Google API key validation to accept new key formats (#1581)
Google now issues API keys starting with "AQ" in addition to the legacy "AIza" prefix. Remove the prefix constraint for Gemini and keep only a minimum length check (30 chars) so both key formats are accepted. https://claude.ai/code/session_01JA1bi4mmwBEm8A2WAFCid4 Co-authored-by: Claude <noreply@anthropic.com>
1 parent fb52784 commit 67f8852

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/frontend/src/services/providers.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ export const PROVIDERS: ProviderDef[] = [
109109
color: '#4285f4',
110110
initial: 'G',
111111
subtitle: 'Gemini 2.5, Gemini 2.0 Flash',
112-
keyPrefix: 'AIza',
113-
minKeyLength: 39,
114-
keyPlaceholder: 'AIza...',
112+
keyPrefix: '',
113+
minKeyLength: 30,
114+
keyPlaceholder: 'API key',
115115
models: [],
116116
},
117117
{

0 commit comments

Comments
 (0)