remove unnecessary env var

This commit is contained in:
Shawn Morreau
2025-12-03 14:40:02 -05:00
parent 989a7c8960
commit 306285577e
-4
View File
@@ -165,8 +165,6 @@ export const gemini = agent({
args: [cliPath, "--yolo", "--output-format=stream-json", "-p", sessionPrompt],
env: createAgentEnv({
GEMINI_API_KEY: apiKey,
GEMINI_CLI_DISABLE_SCHEMA_VALIDATION:
process.env.GEMINI_CLI_DISABLE_SCHEMA_VALIDATION || "1",
}),
onStdout: async (chunk) => {
const text = chunk.toString();
@@ -252,8 +250,6 @@ function configureGeminiMcpServers({ mcpServers, cliPath }: ConfigureMcpServersP
encoding: "utf-8",
env: {
...process.env,
GEMINI_CLI_DISABLE_SCHEMA_VALIDATION:
process.env.GEMINI_CLI_DISABLE_SCHEMA_VALIDATION || "1",
},
});