Coder Social home page Coder Social logo

kuingsmile / word-gpt-plus Goto Github PK

View Code? Open in Web Editor NEW
538.0 12.0 81.0 740 KB

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

License: MIT License

JavaScript 1.47% HTML 4.78% Vue 62.74% TypeScript 30.36% Batchfile 0.08% Dockerfile 0.57%
chatgpt copilot office office365 openai word

word-gpt-plus's Introduction

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
  • Built-in prompts for translation, summarization, polishing, and academic writing
  • Support Azure OpenAI API
  • Support Google PALM2 API
  • Support Google Gemini Pro 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

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.

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!

word-gpt-plus's People

Contributors

kuingsmile avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

word-gpt-plus's Issues

[Feature]:

前置阅读 | Pre-reading

服务类型 | Service Type

Official hosted service

系统信息 | System Information

Windows

Office 版本 | Office Version

office 2016 retail

功能请求 | Feature request

请问可以添加百度的文心一言吗https://yiyan.baidu.com/

[Bug]: TypeError: Failed to construct 'URL': Invalid URL

前置阅读 | Pre-reading

服务类型 | Service Type

Official hosted service

系统信息 | System Information

Windows

Office 版本 | Office Version

microsoft 365

问题重现 | Bug reproduce

Snipaste_2024-01-18_11-29-42

Key正常,采用instant-use,之前运行没有问题,就这几天出现上述情况,在其他IP不同电脑按照教程搭建依然存在问题,请作者支招,感谢

[Bug]: 关于使用自定义API_Base出现的问题

前置阅读 | Pre-reading

服务类型 | Service Type

Official hosted service

系统信息 | System Information

Mac

Office 版本 | Office Version

office 2021

问题重现 | Bug reproduce

我使用的API由项目 https://github.com/aaamoon/copilot-gpt4-service 转换而来。
API 开头为 ghu_xxxx
API_BASE 尝试过 https://url.com 以及 https://url.com/v1/chat/completions 的形式。
目前一直显示 405 Method Not Allowed
请问是api格式的问题么?还是我api_base设置的问题;
image

[Feature]: 请求添加支持linux-arm64的DOCKER镜像

前置阅读 | Pre-reading

服务类型 | Service Type

Self-hosted service

系统信息 | System Information

Windows

Office 版本 | Office Version

others

功能请求 | Feature request

请求添加支持linux-arm64的DOCKER镜像,谢谢
在action中,添加platforms参数即可,例如
- name: Build and Push Docker Image uses: docker/build-push-action@v2 with: context: . file: ./Dockerfile push: true platforms: linux/amd64,linux/arm64

[Bug]: Error: Network Error

前置阅读 | Pre-reading

服务类型 | Service Type

Official hosted service

系统信息 | System Information

Windows

Office 版本 | Office Version

office 2019 retail

问题重现 | Bug reproduce

Error: Network Error,所有都设置ok,用的openal aip,服务是用的官方提供的

图片如下,不知道怎么处理,谢谢大佬了
WC}I{@UY3H_3E%Q9MG1{F14
)(L%}42$A@OG )V$CXF)BW8

[Bug]: Unable to load plugin

前置阅读 | Pre-reading

服务类型 | Service Type

Official hosted service

系统信息 | System Information

Windows

Office 版本 | Office Version

microsoft 365

问题重现 | Bug reproduce

1.人在海外,word.msq.pub可登录
2.按照流程设置成功
image
已设置共享
3.一直加载错误或无网络连接
image
image

[Bug]:

前置阅读 | Pre-reading

服务类型 | Service Type

Official hosted service

系统信息 | System Information

Windows

Office 版本 | Office Version

microsoft 365

问题重现 | Bug reproduce

出现错误403 true,我用的转发,转发api和key在其他里都是正常能用,如何解决?
微信图片_20240310162138

[Bug]: 404?405?

前置阅读 | Pre-reading

服务类型 | Service Type

Official hosted service

系统信息 | System Information

Windows

Office 版本 | Office Version

microsoft 365

问题重现 | Bug reproduce

开发者 你好,

在使用的时候我发现,使用API去请求,填写好了之后,点了保存,使用就会显示404,我有试过填写转发域名是word.msq.pub,就会405,看了一下文档没有解释关于“转发域名”,不知道要不要填,也不知道填得对不对(尴尬

我要如何解决该问题?

image

image

[Bug]: Error: Request failed with status code 429

前置阅读 | Pre-reading

服务类型 | Service Type

Official hosted service

系统信息 | System Information

Windows

Office 版本 | Office Version

office 2016 retail

问题重现 | Bug reproduce

首先感谢你推出的gpt plus插件,它在我改论文的时候,帮了非常大的忙!
但是我今天打开时,遇到了一个问题,Error: Request failed with status code 429。不太懂是什么意思。
下面是我的设置截图
1

[Bug]: 如何在自己的ClodFlare上搭建本项目

前置阅读 | Pre-reading

服务类型 | Service Type

Self-hosted service

系统信息 | System Information

Windows

Office 版本 | Office Version

office 2021

问题重现 | Bug reproduce

附上CF Pages的日志
2023-09-20T05:54:22.807792582Z Cloning repository...
2023-09-20T05:54:23.727540051Z From https://github.com/zxj1009587922/word-GPT-Plus
2023-09-20T05:54:23.727582412Z * branch 56bf1cd -> FETCH_HEAD
2023-09-20T05:54:23.727587792Z
2023-09-20T05:54:23.799018416Z HEAD is now at 56bf1cd ⬆️ Upgrade(custom): upgrade office.js
2023-09-20T05:54:23.799371614Z
2023-09-20T05:54:23.91277168Z
2023-09-20T05:54:23.9479103Z Success: Finished cloning repository files
2023-09-20T05:54:24.733809161Z Detected the following tools from environment: [email protected], [email protected]
2023-09-20T05:54:24.734334145Z Installing project dependencies: yarn
2023-09-20T05:54:25.509928718Z ➤ YN0070: Migrating from Yarn 1; automatically enabling the compatibility node-modules linker 👍
2023-09-20T05:54:25.510638914Z
2023-09-20T05:54:25.672692962Z ➤ YN0000: ┌ Resolution step
2023-09-20T05:54:27.904918378Z ➤ YN0061: │ core-js@npm:2.6.12 is deprecated: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
2023-09-20T05:54:30.285453196Z ➤ YN0061: │ consolidate@npm:0.15.1 is deprecated: Please upgrade to consolidate v1.0.0+ as it has been modernized with several long-awaited fixes implemented. Maintenance is supported by Forward Email at https://forwardemail.net ; follow/watch https://github.com/ladjs/consolidate for updates and release changelog
2023-09-20T05:54:30.690717526Z ➤ YN0061: │ @babel/plugin-proposal-class-properties@npm:7.18.6 is deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
2023-09-20T05:54:32.376381277Z ➤ YN0032: │ fsevents@npm:2.3.3: Implicit dependencies on node-gyp are discouraged
2023-09-20T05:54:32.633053407Z ➤ YN0061: │ memfs@npm:3.6.0 is deprecated: this will be v4
2023-09-20T05:54:33.240584887Z ➤ YN0061: │ stable@npm:0.1.8 is deprecated: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
2023-09-20T05:54:40.203641222Z ➤ YN0002: │ @vueuse/core@npm:9.13.0 doesn't provide vue (p15bc2), requested by vue-demi
2023-09-20T05:54:40.204168662Z ➤ YN0002: │ @vueuse/shared@npm:9.13.0 doesn't provide vue (pf1043), requested by vue-demi
2023-09-20T05:54:41.317347Z Failed: error occurred while running build command
2023-09-20T05:54:40.204203583Z ➤ YN0002: │ word-gpt-plus@workspace:. doesn't provide webpack (pc52ac), requested by stylus-loader
2023-09-20T05:54:40.2052344Z ➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements for details, where is the six-letter p-prefixed code
2023-09-20T05:54:40.207233385Z ➤ YN0000: └ Completed in 14s 534ms
2023-09-20T05:54:40.301181398Z ➤ YN0000: ┌ Post-resolution validation
2023-09-20T05:54:40.301592458Z ➤ YN0028: │ The lockfile would have been modified by this install, which is explicitly forbidden.
2023-09-20T05:54:40.301931572Z ➤ YN0000: └ Completed
2023-09-20T05:54:40.302227417Z ➤ YN0000: Failed with errors in 14s 631ms
2023-09-20T05:54:40.425317755Z Error: Exit with error code: 1
2023-09-20T05:54:40.425803711Z at ChildProcess. (/snapshot/dist/run-build.js)
2023-09-20T05:54:40.426100785Z at Object.onceWrapper (node:events:652:26)
2023-09-20T05:54:40.42635524Z at ChildProcess.emit (node:events:537:28)
2023-09-20T05:54:40.426602932Z at ChildProcess._handle.onexit (node:internal/child_process:291:12)
2023-09-20T05:54:40.434262053Z Failed: build command exited with code: 1

[Feature]:

前置阅读 | Pre-reading

服务类型 | Service Type

Official hosted service

系统信息 | System Information

Mac

Office 版本 | Office Version

office 2021

功能请求 | Feature request

这个对mac的word也有效吗? 我发现我无法加载这个插件

[Feature]:

前置阅读 | Pre-reading

服务类型 | Service Type

Official hosted service

系统信息 | System Information

Windows

Office 版本 | Office Version

microsoft 365

功能请求 | Feature request

word-GPT-Plus: Hi,I don't konw how to set API key,wish some help,thanks a lot

[Bug]:

前置阅读 | Pre-reading

服务类型 | Service Type

Official hosted service

系统信息 | System Information

Windows

Office 版本 | Office Version

office 2019 retail

问题重现 | Bug reproduce

使用自定义域名显示incorrect API key,API及域名来自于https://github.com/chatanywhere/GPT_API_free

[Feature]: 请问能否增加一个仅grammar check 的功能

前置阅读 | Pre-reading

服务类型 | Service Type

Official hosted service

系统信息 | System Information

Mac(arm64)

Office 版本 | Office Version

microsoft 365

功能请求 | Feature request

请问能否增加一个仅grammar check 的功能
有时候稿件写差不多了,只需要检查下语法
另外,默认的几个prompt在哪里能看到呢
谢谢

mac microsoft 365 教程可否出一个?谢谢

前置阅读 | Pre-reading

服务类型 | Service Type

Official hosted service

系统信息 | System Information

Mac

Office 版本 | Office Version

microsoft 365

功能请求 | Feature request

mac Microsoft365 教程可否出一份?谢谢

[Feature]:

前置阅读 | Pre-reading

服务类型 | Service Type

Official hosted service

系统信息 | System Information

Windows

Office 版本 | Office Version

office 2019 retail

功能请求 | Feature request

在用access token 的方式时,

  1. 我希望可以选择在word里的请求反映到chat.openai.com网站上是只开了一个会话,而不是每次start都是新建一个chat
  2. 我没有太明白继续按钮的逻辑,不理解有什么作用
  3. 希望Plus用户可以选择GPT4的模型

[Bug]: TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'.

前置阅读 | Pre-reading

服务类型 | Service Type

Official hosted service

系统信息 | System Information

Windows

Office 版本 | Office Version

office 2016 retail

问题重现 | Bug reproduce

TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'.
yarn build 部署以后,打开页面会报这个错误, 我的nginx服务也已经配置好了,不知道问题出在哪了

[Feature]: 将项目打包成docker,可以在群晖中自建服务。

前置阅读 | Pre-reading

服务类型 | Service Type

Self-hosted service

系统信息 | System Information

Linux

Office 版本 | Office Version

microsoft 365

功能请求 | Feature request

希望作者能将此项目打包成docker或者提供一个包管理为npm的分支,以方便在群晖的webstation或者容器里面部署

[Feature]: anyllm integration?

前置阅读 | Pre-reading

服务类型 | Service Type

Official hosted service

系统信息 | System Information

Windows

Office 版本 | Office Version

office 2016 retail

功能请求 | Feature request

Any plans to enable ability to talk ti anyllm or ollama hosted models??
thanks

添加API

请问怎么添加自己的API呀,点start一直让我Set API Key

[Bug]:

前置阅读 | Pre-reading

服务类型 | Service Type

Official hosted service

系统信息 | System Information

All

Office 版本 | Office Version

microsoft 365

问题重现 | Bug reproduce

The ForwardDomain parameter is not applied because of an error in this line. The correct name of the parameter is "baseURL".
const config = { apiKey, baseURL: basePath, dangerouslyAllowBrowser: true }

[Feature]: 希望添加自定义域名

前置阅读 | Pre-reading

服务类型 | Service Type

Official hosted service

系统信息 | System Information

Windows

Office 版本 | Office Version

microsoft 365

功能请求 | Feature request

1.希望添加chatgpt自定义域名

[Bug]: 当前没有加载项可用

前置阅读 | Pre-reading

服务类型 | Service Type

Official hosted service

系统信息 | System Information

Windows

Office 版本 | Office Version

microsoft 365

问题重现 | Bug reproduce

按照步骤操作,采用Service hosted by you,但一直显示当前没有加载项可用,不知道为什么?

[Bug]: 在使用azure的API时,报错RestError: Error sending request: Failed to fetch

前置阅读 | Pre-reading

服务类型 | Service Type

Official hosted service

系统信息 | System Information

Windows

Office 版本 | Office Version

microsoft 365

问题重现 | Bug reproduce

您好,我在GPT plus中使用学校提供的azure api接口时,出现了错误“RestError: Error sending request: Failed to fetch”,测试信息:
Endpoint: https://hkust.azure-api.net
Deploy name: gpt-35-turbo
完整的URL: https://hkust.azure-api.net/openai/deployments/gpt-35-turbo/chat/completions?api-version=2023-06-01-preview
该URL在服务器(Postman API Platform)上测试,是可以获得回答的,参见下图。
请问这可能是什么原因造成的?
2024-03-22_163049

[Feature]: 账号中生成的new chat感觉可以增加一个批量删除的功能

前置阅读 | Pre-reading

服务类型 | Service Type

Self-hosted service

系统信息 | System Information

Windows

Office 版本 | Office Version

microsoft 365

功能请求 | Feature request

我是使用[access token]进行连接在每次使用时每一句话都会在gpt账户里生成一个new chat(这个记录感觉也还是有必要留存),但是会影响一定的日常其他方面的使用,感觉可以给每一个新生成的对话框加上特定的前缀,然后增加一个批量删除功能

[Feature]: endpoint setting for gemini

前置阅读 | Pre-reading

服务类型 | Service Type

Official hosted service

系统信息 | System Information

Windows

Office 版本 | Office Version

microsoft 365

功能请求 | Feature request

There is endpoint setting for "palm" API.
It would be great to have same settings for "Gemini Pro".

问题:没找到填写api key或者access token的地方

前置阅读 | Pre-reading

服务类型 | Service Type

Official hosted service

系统信息 | System Information

Windows

Office 版本 | Office Version

microsoft 365

功能请求 | Feature request

读了两遍readme,插件装上了,但是没找到填写api key或者access token的地方,请指教,谢谢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.