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

global fetch does not support proxy #885

Closed
pelikhan opened this issue Nov 21, 2024 · 2 comments
Closed

global fetch does not support proxy #885

pelikhan opened this issue Nov 21, 2024 · 2 comments

Comments

@pelikhan
Copy link
Member

          I tested the master branch on my work intranet.

fetchText() works fine. But fetch does not.
Is there an easy way of enriching the default NodeJS fetch with one that supports the proxy?
I would like const fetch = await createFetch() to be called when GenAIScript starts to make sure all future calls to fetch use the proxy version?
@pelikhan

Originally posted by @sahuguet in #882 (comment)

@pelikhan
Copy link
Member Author

@sahuguet take a peek to see if this works out for you. https://microsoft.github.io/genaiscript/reference/scripts/fetch/#hostfetch

@pelikhan
Copy link
Member Author

Release in 1.72.x

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

No branches or pull requests

1 participant