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

Fix occasional test flakiness #19

Closed
wants to merge 1 commit into from
Closed

Conversation

flakey5
Copy link
Collaborator

@flakey5 flakey5 commented Apr 14, 2024

The Mistral client replaces globalThis.fetch with node-fetch. Made a pr in their repo (mistralai/client-js#60) with a proper fix, but in the meantime this should work

@flakey5 flakey5 requested a review from mcollina April 14, 2024 01:17
@mcollina
Copy link
Member

I think this is going to break many people when using this. I'd recommend we publish a fork of the mistral client without the monkey patching.

It does not look like a lot of code: https://github.com/mistralai/client-js/blob/main/src/client.js.

@flakey5
Copy link
Collaborator Author

flakey5 commented Apr 14, 2024

Can you create the fork repo and I'll open the same pr to it?

@mcollina
Copy link
Member

@flakey5
Copy link
Collaborator Author

flakey5 commented Apr 16, 2024

Closing, will open pr replacing the Mistral client w/ the Platformatic fork once platformatic/mistral-client#2 is merged and published

@flakey5 flakey5 closed this Apr 16, 2024
@flakey5 flakey5 deleted the flakey5/test-flakiness branch April 16, 2024 06:59
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