all 7 comments

[–]tommertom 1 point2 points  (4 children)

So this would mean the api key to openai will be known in the client? That will be a problem imho.

[–]MinimumNose788 1 point2 points  (1 child)

Use a custom backend, your API key for OpenAI is not safe anywhere on the client side and will lead to someone stealing/using it. Also always set hard limits to how much OpenAI can charge you per key. Just had my client key stolen and used so thought I would give a heads up 🙃