mistral.rs icon indicating copy to clipboard operation
mistral.rs copied to clipboard

Better error when token not provided for gated models

Open EricLBuehler opened this issue 9 months ago • 0 comments

We should distinguish between 2 cases in api_get_file!:

  • 404: read from local
  • Anything else: propagate error Currently, if the "error" is not 404, we will still attempt reading from disk. If you are trying to access a gated model without an access token, this will be very confusing.

EricLBuehler avatar Apr 27 '24 11:04 EricLBuehler