feat(core): Make all http requests made with httpRequestWithAuthentication abortable (#11704)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-11-13 14:18:21 +01:00
committed by GitHub
parent 3202e8c946
commit 0d8aada490
2 changed files with 11 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import type { CallbackManager as CallbackManagerLC } from '@langchain/core/callbacks/manager';
import type { AxiosProxyConfig } from 'axios';
import type { AxiosProxyConfig, GenericAbortSignal } from 'axios';
import type * as express from 'express';
import type FormData from 'form-data';
import type { PathLike } from 'fs';
@@ -529,6 +529,7 @@ export interface IHttpRequestOptions {
};
timeout?: number;
json?: boolean;
abortSignal?: GenericAbortSignal;
}
/**