Skip to content

可一键部署属于自己的 ChatGPT 服务。包含对接 ChatGPT 接口的 NodeJS 服务,以及基于 Vue 的前端交互页面。

Notifications You must be signed in to change notification settings

nossika/chatgpt-page

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatGPT page

包含对接 ChatGPT 接口的 NodeJS 服务,以及基于 Vue 的前端交互页面。

配置 openAI 密钥

按官方文档注册好账号,并获取到专属的 apiKey 。

https://platform.openai.com/docs/api-reference/authentication

新建 secret.json 文件到项目根目录,文件内容:

{
  "key": "your apiKey"
}

启动服务

启动:

$ npm i
$ npm start

更多启动参数:

port: 服务端口

proxy-port: openAI 接口可能被墙,需要本地搭好代理服务,走代理端口请求 openAI

例子:

$ npm start -- --port 9999 --proxy-port 8888 

浏览器打开 localhost:port 即可访问页面使用。

About

可一键部署属于自己的 ChatGPT 服务。包含对接 ChatGPT 接口的 NodeJS 服务,以及基于 Vue 的前端交互页面。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published