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
It looks like you have the option of providing a custom embedding function which could hit a backend server handling all your requests to OpenAI and returning of the embeddings:
Remember that your API key is a secret! Do not share it with others or expose it in any client-side code (browsers, apps). Production requests must be routed through your own backend server where your API key can be securely loaded from an environment variable or key management service.
I see that this library is built to run entirely on the client side. If so, how can we hide the API key? Doesn't this introduce security issues?
The text was updated successfully, but these errors were encountered: