chatgpt-ui
chatgpt-ui copied to clipboard
Feature request: let users set OpenAI API tokens for their own accounts
I want to host this as a service for me and a few friends but would like for each user to be able to use their own OpenAI token so they can pay for what they use themselves. Is this possible, or would it be a possible extension?
Hello,
Thanks for the feedback!
In the latest version, the admin panel has an option to control whether to enable the API Key configuration function on the front-end.
You can try it out by going to the CHAT module in the admin panel, opening the Settings model, and finding a record with the name "open_api_key_setting". Change its value to "True". This will make the option to set API KEY visible in the left navigation bar on the front-end.
Hello. I realised by allowing user to use their own api key, the api key will disappear after some time. Is this intended?
For example when I --restart my server, the api key disappears.
Hello. I realised by allowing user to use their own api key, the api key will disappear after some time. Is this intended?
For example when I --restart my server, the api key disappears.
Hello, currently the client-side API key is stored in the browser's localStorage, so if the user switches browsers or clears their cache, the API key will be lost. Do you think it is necessary to store this in the database?
Just checked this out, nice! What if the token was also stored in the database so that you can log in to multiple devices and not have to paste in the API key everywhere?
Hello. I realised by allowing user to use their own api key, the api key will disappear after some time. Is this intended? For example when I --restart my server, the api key disappears.
Hello, currently the client-side API key is stored in the browser's localStorage, so if the user switches browsers or clears their cache, the API key will be lost. Do you think it is necessary to store this in the database?
Sorry, just saw this reply. Personally I'd like this as an option as well.