Replies: 1 comment
-
Can answer by myself now: it needs to be passed via Authorization-Header as Bearer token
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Running llama-server offers the capability of applying an API-KEY using the switch
--api-key APIKEY
.How can we send this API key along with an API-request to the completion-api?
Referring the official example:
I tried to send "api_key: 'KEY'" along with the data like
prompt
andn_predict
, but this was not considered. The documentation of these parameters also shows no way to apply an API-Key.Beta Was this translation helpful? Give feedback.
All reactions