mistralai / client-js

JS Client library for Mistral AI platform
Apache License 2.0
185 stars 46 forks source link

`.files` is missing from types #82

Closed arcticfly closed 1 month ago

arcticfly commented 5 months ago

Hey Mistral team,

I'm excited to try out your fine-tuning API! Unfortunately it appears that the .files attribute (necessary for uploading a training file to the API before training) is missing from the TypeScript types. Some documentation is available on the npm README, but it's currently up to the developer to guess what the types are and define them ourselves.

Could you please ship the updated types? Thank you!

GaspardBT commented 1 month ago

Thanks for reporting this issue. We have deprecated this package in favor of mistralai/client-ts, which is the new official Mistral client, compatible with both TypeScript and JavaScript.

You can find all installation information here.

This change is effective starting with version 1.0.0 of the npm package.

Let us know if your issue persists with the new package by opening an issue there.