News for hackers. Stuff that matters.
Re:Introducing ChatGPT and Whisper APIs by fanieldanara on Wednesday March 01, 2023 @04:34PM (#34988660)
Bearer indicates the type of credential being supplied in the Authorization header. Bearer tokens are a type of credential, introduced in RFC6750 [0]. Essentially the OpenAI api key you’re using is a form of bearer token, and that’s why the Bearer type should be included there.

Other authentication methods (like username/password or “Basic”) use the Authorization header too, but specify “Authorization: Basic <base64 encoded credentials>”.

[0] https://www.rfc-editor.org/rfc/rfc6750

Re:Introducing ChatGPT and Whisper APIs by pbreit on Wednesday March 01, 2023 @05:39PM (#34989330)
Does it mostly just mean that, for non-JWT-style tokens, the same string essentially serves as both a "username" and a "password"?