AI assistant with ChatGPT
AI assistant makes it possible to use ChatGPT inside LibreOffice Writer.
latest release: 2023-10-10 10:53:56
AI assistant using ChatGPT makes it possible to use ChatGPT inside LibreOffice. Available functionalities are:
- Summarize the text
- Translate into English, German, Spanish and French
- Extracting keywords
- Edit the text
- Generate image based on description
Please note that generating image is not currently possible on Linux, because of the restrictions in Microsoft servers that provide the content.
To use the extension, you have to define environment variable OPENAI_API_KEY with the API key that you should obtain from openai.com yourself. ChatGPT users can use trial version of the API for 1-2 month.
In Linux, you should add this line to ~/.bashrc, and put your generated key instead of 3 dots:
On Windows, you should go to "System properties > Environment variables" to set the system-wide environment variable.
Furthermore, you have to install pip module and then openai module using pip. To do that, you should use PIP bootstrap. First, download this script:
Then, use LibreOffice internal Python to run it:
After that, install openai module using pip:
program/python -m pip install openai
If the installation is successful, you should be able to use openai module inside LibreOffice internal Python, and run the AI assistant extension.