remove unnecessary env var
This commit is contained in:
@@ -165,8 +165,6 @@ export const gemini = agent({
|
|||||||
args: [cliPath, "--yolo", "--output-format=stream-json", "-p", sessionPrompt],
|
args: [cliPath, "--yolo", "--output-format=stream-json", "-p", sessionPrompt],
|
||||||
env: createAgentEnv({
|
env: createAgentEnv({
|
||||||
GEMINI_API_KEY: apiKey,
|
GEMINI_API_KEY: apiKey,
|
||||||
GEMINI_CLI_DISABLE_SCHEMA_VALIDATION:
|
|
||||||
process.env.GEMINI_CLI_DISABLE_SCHEMA_VALIDATION || "1",
|
|
||||||
}),
|
}),
|
||||||
onStdout: async (chunk) => {
|
onStdout: async (chunk) => {
|
||||||
const text = chunk.toString();
|
const text = chunk.toString();
|
||||||
@@ -252,8 +250,6 @@ function configureGeminiMcpServers({ mcpServers, cliPath }: ConfigureMcpServersP
|
|||||||
encoding: "utf-8",
|
encoding: "utf-8",
|
||||||
env: {
|
env: {
|
||||||
...process.env,
|
...process.env,
|
||||||
GEMINI_CLI_DISABLE_SCHEMA_VALIDATION:
|
|
||||||
process.env.GEMINI_CLI_DISABLE_SCHEMA_VALIDATION || "1",
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user