-
Notifications
You must be signed in to change notification settings - Fork 400
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
ChatGPT Plugin How to set OpenAIApiKey (inp_key) globaly #348
Comments
From my understanding of the documentation, there is no concept of global configuration / variable / storage to be the same for all users for OnlyOffice plugin such as openai / chatgpt (to set and store OpenAI API Key "inp_key" globaly) and Nextcloud AIO has no volumes for /etc/onlyoffice/documentserver (for local.json) and /var/www/onlyoffice/documentserver/sdkjs-plugins so it's impossible to automatically start (autostart) plugins or modify the code or config of an existing plugin. I still don't understand where the "Document Server config" / "ONLYOFFICE Docs config" (var docEditor = new DocsAPI.DocEditor etc.) is in the Nextcloud AIO integration similar to #103 REFERENCES |
Hello! @jejbq
You correctly pointed out that currently, there is no feature allowing the server administrator to add API keys to plugins. We are already working on adding this functionality, and it will be available in one of the future versions of our editor. Thank you for your report! |
Hello @VladimirProkofiev52 ! Is there a related issue in DocumentServer that will track the functionality addition? |
We have since migrated to OnlyOffice Docs Enterprise outside of Nextcloud AIO and are using our own inference server with Ollama with llama3.2:3b LLM, Open WebUI with an OpenAI compatible API endpoint. It would be nice to have a solution to use the custom OpenAI compatible API and save the API key for all our users. The AI "ChatGPT" plugin is currently useless without that. The above commands are not working with onlyoffice_documentserver-ee while it was workng with non ee edition.
|
Hello,
I installed chatgpt plugin in OnlyOffice DocumentServer for Nextcloud-AIO
but we don't want our OnlyOffice/Nextcloud user to enter the OpenAI's API key manually
to activate it.
Is there a way to set OpenAI API Key "inp_key" globaly for all users?
If yes, is it possible to keep this API Key somehow secret? (via PostgreSQL or env)
TECHNICAL DETAILS
FILES
REFERENCES
https://helpcenter.onlyoffice.com/ONLYOFFICE-Editors/ONLYOFFICE-Presentation-Editor/UsageInstructions/ChatGPT.aspx
https://helpcenter.onlyoffice.com/installation/docs-developer-configuring.aspx
https://api.onlyoffice.com/plugin/installation/onpremises
https://api.onlyoffice.com/editors/config/editor/plugins
https://api.onlyoffice.com/plugin/config
The text was updated successfully, but these errors were encountered: