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

leonmeijer/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

  • Utilize the GPT-3.5 API to generate text and support select models
  • Support chatGPT web api using access Token, it's FREE!
  • Built-in prompts for translation, summarization, polishing, and academic writing
  • Support Azure OpenAI API
  • Support Google PALM2 API
  • 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

Web API need an access token of chatGPT website, you can get it from access token

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.

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

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.

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 access token or 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 access tokens or API keys.

How to get access token

email + password accounts

To use ChatGPT web API, you'll need an OpenAI access token from the ChatGPT webapp. To do this, you can use any of the following methods which take an email and password and return an access token:

These libraries work with email + password accounts (e.g., they do not support accounts where you auth via Microsoft / Google).

Microsoft / Google accounts

Alternatively, you can manually get an accessToken by logging in to the ChatGPT webapp and then opening https://chat.openai.com/api/auth/session, which will return a JSON object containing your accessToken string.

Access tokens last for days.

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 62.1%
  • TypeScript 30.0%
  • HTML 6.0%
  • JavaScript 1.8%
  • Batchfile 0.1%