mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-13 15:40:57 -07:00
Update packages/core/src/tools/web-fetch.ts
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
@@ -170,7 +170,7 @@ class WebFetchToolInvocation extends BaseToolInvocation<
|
||||
|
||||
const response = await retryWithBackoff(
|
||||
async () => {
|
||||
const res = await fetchWithTimeout(fetchUrl, URL_FETCH_TIMEOUT_MS);
|
||||
const res = await fetchWithTimeout(fetchUrl, URL_FETCH_TIMEOUT_MS, signal);
|
||||
if (!res.ok) {
|
||||
const error = new Error(
|
||||
`Request failed with status code ${res.status} ${res.statusText}`,
|
||||
@@ -182,6 +182,7 @@ class WebFetchToolInvocation extends BaseToolInvocation<
|
||||
},
|
||||
{
|
||||
retryFetchErrors: this.config.getRetryFetchErrors(),
|
||||
signal,
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user