LibreOffice Logo LibreOffice Logo Extensions, Documentation and Templates repository

AI assistant with ChatGPT

AI assistant makes it possible to use ChatGPT inside LibreOffice Writer.

★ ☆ ☆ ☆ ☆
Extensions Writer
Download latest

latest release: 2024-03-21 22:22:22

Description

AI assistant using ChatGPT makes it possible to use ChatGPT inside LibreOffice. Available functionalities are:

  • Chat
  • 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:

export OPENAI_API_KEY="..."

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:

https://bootstrap.pypa.io/get-pip.py

Then, use LibreOffice internal Python to run it:

program/python get-pip.py

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.

Homepage: https://wiki.documentfoundation.org/User:Reyhane

Repository: https://wiki.documentfoundation.org/User:Reyhane

Release Description Compatibility Operating Systems License Release notes Updated  
1.0 Initial release 7.0 Linux, Windows, macOS GPL Initial version of the extension 2023-10-10 10:53:56 Download

Related Extensions

odm2pdf4CLI

Logo for odm2pdf4CLI

odm2pdf4CLI is a command-line macro to create PDF files from LibreOffice Writer ODM master files.This is a workaround for a buggy command-line --convert option behavior.

12-2024

168

Not rated yet

localwriter

Logo for localwriter

A LibreOffice Writer extension that adds local-inference generative AI features.

09-2024

2427

★ ★ ★ ★ ☆

VBA Expressions

Logo for VBA Expressions

VBA Expressions is a powerful string expression evaluator for LO Basic, providing the user with more than 100 mathematical, statistical, financial, date-time, logical and text manipulation functions, with support for variables and arrays.

10-2024

6229

★ ★ ★ ★ ★

GigaChat plugin(Individual)

Logo for GigaChat plugin(Individual)

The GigaChat plugin, is an innovative tool leveraging neural network technology to effectively execute user requests. This cutting-edge plugin utilizes advanced AI algorithms to fulfill a wide range of user needs and interactions, providing effic

04-2024

308

★ ☆ ☆ ☆ ☆

APA version 7 template

Logo for APA version 7 template

An APA 7 template for reports a complex version.

06-2024

978

Not rated yet

GigaChat plugin(Enterprise)

Logo for GigaChat plugin(Enterprise)

The GigaChat plugin, is an innovative tool leveraging neural network technology to effectively execute user requests. This cutting-edge plugin utilizes advanced AI algorithms to fulfill a wide range of user needs and interactions, providing effic

04-2024

943

Not rated yet

Feedback

★ ☆ ☆ ☆ ☆

Post your review

You cannot post reviews until you have logged in. Login Here.

Reviews

  • Binderya Bat Dec 2, 2024, 5:23 AM (17 days ago)

    ☆ ☆ ☆ ☆ ☆

    маш их баярлалаа!

  • Steve Shaffer Mar 14, 2024, 10:58 PM (9 months ago)

    ☆ ☆ ☆ ☆ ☆

    Is there some way to see where this extension might be throwing an error? I have it installed and the API key set. the menu is present and the window seems to churn for a while when any AI assistant option is selected but nothing happens.

  • Norman Mar 9, 2024, 2:39 PM (9 months ago)

    ☆ ☆ ☆ ☆ ☆

    Please adapt to LibreOffice Portable Windows.

  • Clevere Eltern Jan 14, 2024, 9:52 AM (11 months ago)

    ☆ ☆ ☆ ☆ ☆

    I am trying to use this great extension in LibreOffice with MacOS and get an error that corresponds to the problem, that openai is not installed. I also have no program/ folder in LibreOffice. Do you have any hints what I can do?

    • Clevere Eltern Jan 14, 2024, 9:54 AM (11 months ago)

      I am getting the following error messages, if I try to enable the extension:

      <class 'ModuleNotFoundError'>: No module named 'openai', traceback follows
      File "/Applications/LibreOffice.app/Contents/Resources/pythonloader.py", line 147, in writeRegistryInfo
      mod = self.getModuleFromUrl( locationUrl )
      File "/Applications/LibreOffice.app/Contents/Resources/pythonloader.py", line 102, in getModuleFromUrl
      exec(codeobject, mod.__dict__)
      File "/Users/marc/Library/Application Support/LibreOffice/4/user/uno_packages/cache/uno_packages/lu567552snj5c.tmp_/extension.oxt/main.py", line 7, in <module>
      import openai
      File "/Applications/LibreOffice.app/Contents/Resources/uno.py", line 346, in _uno_import
      return _builtin_import(name, *optargs, **kwargs)

      (com.sun.star.uno.RuntimeException) { { Message = "<class 'ModuleNotFoundError'>: No module named 'openai', traceback follows\X000a File \"/Applications/LibreOffice.app/Contents/Resources/pythonloader.py\", line 147, in writeRegistryInfo\X000a mod = self.getModuleFromUrl( locationUrl )\X000a File \"/Applications/LibreOffice.app/Contents/Resources/pythonloader.py\", line 102, in getModuleFromUrl\X000a exec(codeobject, mod.__dict__)\X000a File \"/Users/marc/Library/Application Support/LibreOffice/4/user/uno_packages/cache/uno_packages/lu567552snj5c.tmp_/extension.oxt/main.py\", line 7, in <module>\X000a import openai\X000a File \"/Applications/LibreOffice.app/Contents/Resources/uno.py\", line 346, in _uno_import\X000a return _builtin_import(name, *optargs, **kwargs)\X000a\X000a", Context = (com.sun.star.uno.XInterface) @0 } }

  • Pascal Huisman Dec 10, 2023, 8:18 PM (12 months ago)

    ★ ★ ★ ☆ ☆

    Just use your package manager:
    sudo apt install pip
    pip install openai
    Check you have your local path in your environment.
    .local/bin/
    pascal@xps9560:~$ $PATH
    bash: /home/pascal/.local/bin

    Problems with OpenAI:
    https://platform.openai.com/docs/quickstart?context=python

    When using chatgpt longer than 5 months. The API doesn't work. You have to provide payment information

RSS feed for reviews on this page | RSS feed for all reviews