fix API Error when using proxy
This commit is contained in:
@@ -9,6 +9,12 @@ export async function executeCodeCommand(args: string[] = []) {
|
|||||||
// Set environment variables
|
// Set environment variables
|
||||||
const env = {
|
const env = {
|
||||||
...process.env,
|
...process.env,
|
||||||
|
HTTPS_PROXY: undefined,
|
||||||
|
HTTP_PROXY: undefined,
|
||||||
|
ALL_PROXY: undefined,
|
||||||
|
https_proxy: undefined,
|
||||||
|
http_proxy: undefined,
|
||||||
|
all_proxy: undefined,
|
||||||
DISABLE_PROMPT_CACHING: "1",
|
DISABLE_PROMPT_CACHING: "1",
|
||||||
ANTHROPIC_AUTH_TOKEN: "test",
|
ANTHROPIC_AUTH_TOKEN: "test",
|
||||||
ANTHROPIC_BASE_URL: `http://127.0.0.1:3456`,
|
ANTHROPIC_BASE_URL: `http://127.0.0.1:3456`,
|
||||||
|
|||||||
Reference in New Issue
Block a user