Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

WIP and Untested: Replace axios and axiosRetry with fetch or node-fetch #16

Closed

Conversation

mattlgroff
Copy link
Contributor

@mattlgroff mattlgroff commented Dec 15, 2023

The Why:

  • axios doesn't work natively on Cloudflare Workers, but fetch does.
  • axios wasn't doing anything special that fetch can't do

I don't have time to test this but I wanted to get this up so if someone wanted to work off of it they could.

@mattlgroff
Copy link
Contributor Author

Draft PR that is the beginnings of a fix for the Cloudflare Workers issue

Error with Cloudflare Workers #8

@sublimator
Copy link
Contributor

This WIP PR aside, moving to fetch seems like a good idea!
Axios doesn't support streaming in the browser either
See #4

@wordware-ai
Copy link

Implemented and released as a separate package in case anyone can't wait for this PR to get merged https://www.npmjs.com/package/mistral-edge

This was referenced Dec 17, 2023
@Bam4d Bam4d closed this Dec 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants