-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API Key Authentication for Michaelfeil Infinity #207
Comments
It's just a fastapi server, implement it as usual like you do on FastAPI. |
I added an example on how to use infinity with runpod.io note, that API_Keys are typically not set, they are generated. Also they are not verified by the application itself, but by e.g. AWS API Gateway. I understand ypur interest, but i think such a feature is easy to implement yourself or better be added with another service |
@monotykamary has implemented it. Changed my mind: If the contribution is easy enough, comes with a unit test that covers every LOC, and defaults to no api key as default behauviour, would be accepted |
Oh, I just did a dirty implementation to quickly spin up a quick embedding server with auth on Modal: https://github.com/dwarvesf/llm-hosting/blob/main/infinity_snowflake_arctic_embed_l_335m.py |
Looks not dirty at all @monotykamary! Awesome |
@monotykamary @semoal @AjayKarma05 Added auth, you can set a Bearer token via |
How to set the API_KEY in the Langchain Infinity Embedding? |
@Jimmy-Newtron PRs to langchain are welcome. I think this feature is missing there. |
Model description
Could you please provide guidance on how to enable API_KEY authentication? Alternatively, is there a plan to implement API_KEY authentication similar to OpenAI's approach?
Open source status
Provide useful links for the implementation
No response
The text was updated successfully, but these errors were encountered: