mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-08 04:10:35 -07:00
refactor(core): improve error handling for setGlobalProxy (#12437)
This commit is contained in:
@@ -21,11 +21,7 @@ import { getErrorMessage } from '../utils/errors.js';
|
||||
import type { Config } from '../config/config.js';
|
||||
import { ApprovalMode, DEFAULT_GEMINI_FLASH_MODEL } from '../config/config.js';
|
||||
import { getResponseText } from '../utils/partUtils.js';
|
||||
import {
|
||||
fetchWithTimeout,
|
||||
isPrivateIp,
|
||||
setGlobalProxy,
|
||||
} from '../utils/fetch.js';
|
||||
import { fetchWithTimeout, isPrivateIp } from '../utils/fetch.js';
|
||||
import { convert } from 'html-to-text';
|
||||
import {
|
||||
logWebFetchFallbackAttempt,
|
||||
@@ -415,10 +411,6 @@ export class WebFetchTool extends BaseDeclarativeTool<
|
||||
false, // canUpdateOutput
|
||||
messageBus,
|
||||
);
|
||||
const proxy = config.getProxy();
|
||||
if (proxy) {
|
||||
setGlobalProxy(proxy);
|
||||
}
|
||||
}
|
||||
|
||||
protected override validateToolParamValues(
|
||||
|
||||
Reference in New Issue
Block a user