fix: Make Gemini API Key optional for Whisk model
This commit is contained in:
parent
eb31af3f29
commit
dc61090c06
1 changed files with 2 additions and 1 deletions
|
|
@ -720,7 +720,8 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||
const apiKey = apiKeyInput.value.trim();
|
||||
const selectedModel = apiModelSelect?.value || 'gemini-3-pro-image-preview';
|
||||
|
||||
if (!apiKey) {
|
||||
// API Key is optional for Whisk, but required for Gemini
|
||||
if (!apiKey && selectedModel !== 'whisk') {
|
||||
openApiSettings();
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue