GithubHelp home page GithubHelp logo

jianpingh / chatgpt-node-vue3 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dev-zuo/chatgpt-node-vue3

0.0 0.0 0.0 1.38 MB

Vue3 + Node.js 调用 OpenAI API 实现 chatgpt、生成图片 demo

JavaScript 29.78% HTML 70.22%

chatgpt-node-vue3's Introduction

OpenAI 接口功能体验, 实现 chatpgt、生成图像

OpenAI ChatGPT server

node v16.17.1

代码部署运行

将代码拷贝到服务器(或者 fork 后,git clone 到服务器)

1、在 config/api-key.mjs 文件中将 apiKey 修改为您自己的。

2、修改默认登录密码,由于 OpenAI API 超过 $18 免费额度后会收费,所以设置了登录密码,默认为 123456,可以在 server/args.json 文件中修改默认密码

运行项目

# 进入项目目录
cd chatgpt-node-vue3 
# 安装依赖
npm install
# 使用 node 或 pm2 开启服务
node server/index.js

运行服务成功后,访问 https://服务器ip:9000 即可体验功能。注意服务器需要在国外!!!,比如 AWS 免费一年国外服务器。

chatgpt stream 实现

功能演示

chatgpt

openai-chatgpt.png

图片生成

openai-img-gen.png

登录

login.png

chatgpt-node-vue3's People

Contributors

dev-zuo 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.