respect GEMINI_MODEL and OPENCODE_MODEL env vars in test runner
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
committed by
pullfrog[bot]
parent
06683c1e0a
commit
4789a2b5e3
+2
-2
@@ -316,9 +316,9 @@ async function runTestForAgent(ctx: RunContext): Promise<ValidationResult> {
|
||||
env.OPENCODE_MODEL ??= "google/gemini-3-pro-preview";
|
||||
}
|
||||
|
||||
// gemini: override to pro for all tests (including mini-effort) to avoid flash's tight RPD quota limits
|
||||
// gemini: override to 2.5-flash for all tests (including mini-effort) to avoid quota limits
|
||||
if (ctx.agent === "gemini") {
|
||||
env.GEMINI_MODEL ??= "gemini-3-pro-preview";
|
||||
env.GEMINI_MODEL ??= "gemini-2.5-flash";
|
||||
}
|
||||
|
||||
// build file-based env vars for MCP servers that don't inherit parent env
|
||||
|
||||
Reference in New Issue
Block a user