You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--api-key <API_KEY>
Set an api key for request authorization.
By default the server responds to every request. With an api key set, the requests must have the Authorization header set with the api key as Bearer token.
[env: API_KEY=]
It would be nice if TGI had this as well.
Motivation
It enables custom authorization of the endpoint.
Your contribution
sry
The text was updated successfully, but these errors were encountered:
Adding this block in here and appending the layer should achieve this.
One negative effect of this is that the healthcheck and info endpoints get auth included.
I would propose having a slightly different approach to TEI and only adding the Auth Layer at the route level for non information endpoints. I could start a PR for this next week.
Feature request
TEI has the
API_KEY
argument:It would be nice if TGI had this as well.
Motivation
It enables custom authorization of the endpoint.
Your contribution
sry
The text was updated successfully, but these errors were encountered: