Giter Site home page Giter Site logo

nossika / chatgpt-page Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 0.0 256 KB

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

TypeScript 58.87% JavaScript 37.56% HTML 3.58%

chatgpt-page's Introduction

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 即可访问页面使用。

chatgpt-page's People

Contributors

nossika avatar

Stargazers

 avatar  avatar  avatar  avatar Charles Chan avatar  avatar

Watchers

 avatar Kostas Georgiou avatar

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.