huggingface-php icon indicating copy to clipboard operation
huggingface-php copied to clipboard

Update to use 'Bearer' HTTP header instead of 'Authorization'

Open chrishow opened this issue 1 year ago • 0 comments

HuggingFace API was returning this message:

Authorization header is invalid, use 'Bearer API_TOKEN'

I assume they have changed their auth code since this library was written.

Furthermore, the HttpTransporter was throwing a string, but ErrorException requires an array.

This should close issue #1

chrishow avatar Dec 27 '23 14:12 chrishow