stapi icon indicating copy to clipboard operation
stapi copied to clipboard

[Feature] Add authentication via header "Authorization: Bearer"

Open marianbasti opened this issue 10 months ago • 3 comments

marianbasti avatar Feb 24 '25 22:02 marianbasti

Thanks for the PR! I am happy to merge this as long as the setting API key is not required. I can do a more thorough review afterwards.

Please also take a look at infinity which may be a better project for your needs: https://github.com/michaelfeil/infinity

samos123 avatar Feb 25 '25 01:02 samos123

Thank for the suggested repo! Its got plenty of nice features, but for the moment i was looking for OpenAI compatible one, and yours fits perfectly.

I made the API_KEY optional, enabling the same usage as before if one is not specified.

Cheers!

marianbasti avatar Feb 25 '25 13:02 marianbasti

Infinity is OpenAI compatible. KubeAI has switched to infinity.

samos123 avatar Feb 25 '25 15:02 samos123