Skip to content

Word GPT Plus is a word add-in which integrates the chatGPT model into Microsoft Word. Both official and web api is supported.

License

Notifications You must be signed in to change notification settings

Kuingsmile/word-GPT-Plus

Repository files navigation

Logo

Word & chatGPT

English | 简体中文

Introduction

Word GPT Plus is a word add-in which integrates the chatGPT model into Microsoft Word. It allows you to generate text based on the text you have written in your document. You can use it to translate, summarize, polish or even write a whole document from zero.

Features

  • Built-in prompts for translation, summarization, polishing, and academic writing
  • Multiple platforms supported
    • OpenAI API
    • Azure OpenAI API
    • Ollama2
    • Google PALM2 API
    • Google Gemini Pro API
    • Groq
  • Support for multiple languages
  • Custom prompts can be set and saved for future use
  • Ability for users to set temperature and max tokens
  • Proxy support

230424 091554 230424 091221

Requirements

software

Note: office add-in can only used in docx file, not support doc file.

account

Official API need an OpenAI api key, you can get it from https://platform.openai.com/account/api-keys

You need to apply for qualification first, please go to Azure OpenAI API application website to apply for qualification.

You need to go to Google AI to apply for qualification for Google PALM2 API.

Google Gemini Pro API's api key is the same as Google PALM2 API's api key, and the free version is currently limited to 60 requests per minute.

Groq's api key can be applied for at https://console.groq.com/keys.

Getting Started

There are two ways to install Word GPT Plus: through my free hosting service, or by self-hosting it.

I recommend utilizing my hosting service as it is both user-friendly and requires no installation of additional dependencies. Furthermore, you will have access to the most up-to-date version of Word GPT Plus at all times.

Rest assured that your privacy is protected as all data is saved using localStorage.

However, if you desire faster speeds and possess expertise with Node.js, self-hosting is also an option.

Service hosted by me

localhost

This service is built using Cloudflare Pages, domain name: https://word.msq.pub

For China users, there maybe some network problems, please use ping word.msq.pub to see if you can access the domain.

You can add msq.pub to your proxy software's rules, or use self-hosted.

  1. Download the add-in manifest.xml file and Save it to a directory on your computer, such as C:\Users\username\Documents\WordGPT.
  1. Follow the Sideload add-in instructions below to install the add-in.

docker

You can also use docker to run the service, first docker pull the image, then run the container.

docker pull kuingsmile/word-gpt-plus
docker run -d -p 3000:80 kuingsmile/word-gpt-plus

You need to modify all [localhost:3000](http://localhost:3000) in manifest.xml to your server address.

Follow the Sideload add-in instructions below to install the add-in.

Self-hosted

If you want to host the add-in yourself, you will need to clone this repo and install dependencies, then run the project. Need Node.js 16+.

git clone https://github.com/Kuingsmile/Word-GPT-Plus.git
yarn
yarn run serve

manifest.xml

Then, follow the Sideload add-in instructions below to install the add-in.

Sideload add-in

To get started with Word GPT Plus, you will need to sideload the add-in into Microsoft Word.

You can find instructions provided by MicroSoft at the following link: sideload office add-ins

  1. Go to the folder where you saved the manifest.xml file, for example C:\Users\username\Documents\WordGPT.
  2. Open the context menu for the folder(right-click the folder) and select Properties.
  3. Within the Properties dialog box, select the Sharing tab, and then select Share. image
  4. Within the Network access dialog box, add yourself and any other users you want to share, choose the Share button, When you see confirmation that Your folder is shared, note the full network path that's displayed immediately following the folder name. image
  5. Open a new document in Word, choose the File tab, and then choose Options.
  6. Choose Trust Center, and then choose the Trust Center Settings button.
  7. Choose Trusted Add-in Catalogs.
  8. In the Catalog Url box, enter the full network path and then choose Add Catalog.
  9. Select the Show in Menu check box, and then choose OK. image
  10. Close and then restart Word.
  11. Click Insert > My Add-ins > Shared Folder, choose GPT Plus, and then choose Add.
  12. Enjoy it! image

How to fill in API key

After entering Word GPT Plus, click the orange Settings button on the homepage to enter the settings page, where you can switch APIs and fill in API keys.

Contributing

If you have a suggestion that would make this better, please fork the repo and create a pull request.

License

MIT License

Show your support

Give a ⭐️ if this project helped you!

About

Word GPT Plus is a word add-in which integrates the chatGPT model into Microsoft Word. Both official and web api is supported.

Topics

Resources

License

Stars

Watchers

Forks