Closed pseudotensor closed 5 months ago
Ciao @pseudotensor,
to use the API, include the header X-API-Key
.
Here’s an example of how to use it with curl
:
curl http://localhost:3000/get_model_info -H 'X-API-Key: XXXXXXXXX' -v
Make sure to use the correct X-API-Key
header as shown above.
I see, different auth method, thanks!
@alessiodallapiazza is there anyway to start the server that makes it accepts the -H "Authorization: Bearer APIKEY"
header?. This X-API-Key
header method seems to break tools out there like promptflow.
If I set --api-key , then always get invalid api key from server.
e.g.
then client (even on same machine) does:
always results in
I've ensured that there are no other processes around and nothing else using that port. Everything works well if don't set the api key.