Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use signal option in axios adapter if passed in #677

Merged
merged 1 commit into from
Apr 8, 2023

Conversation

nfcampos
Copy link
Collaborator

@nfcampos nfcampos commented Apr 8, 2023

No description provided.

@vercel
Copy link

vercel bot commented Apr 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
langchainjs-docs ⬜️ Ignored (Inspect) Apr 8, 2023 4:55pm

@nfcampos nfcampos merged commit 974a12f into main Apr 8, 2023
@nfcampos nfcampos deleted the nc/axios-adapater-signal branch April 8, 2023 17:04
@@ -315,6 +315,10 @@ function createRequest(config) {
if (config.timeout && config.timeout > 0) {
options.signal = AbortSignal.timeout(config.timeout);
}
if (config.signal) {
// this overrides the timeout signal if both are set

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants