We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7044d8e commit 4488798Copy full SHA for 4488798
src/index.ts
@@ -102,8 +102,8 @@ export const configSchema = z
102
})
103
.refine(
104
(data) => {
105
- // If any model is explicitly specified, API key is required
106
- if (data.modelName) {
+ // If a non-default model is explicitly specified, API key is required
+ if (data.modelName && data.modelName !== "gemini-2.0-flash") {
107
return data.modelApiKey !== undefined && data.modelApiKey.length > 0;
108
}
109
return true;
0 commit comments