Giter VIP home page Giter VIP logo

aideepin's Introduction

Getting Started

声明:此项目只发布于 Github,基于 MIT 协议,免费且作为开源学习使用。并且不会有任何形式的卖号等行为,谨防受骗。

1691585301627

1691583184761

1691583124744

1691583329105

体验网址:http://www.aideepin.com

接入的模型:ChatGPT 3.5,DALL-E 2

该仓库为后端服务,前端项目见aideepin-web

如何部署

初始化

  • 初始化数据库

    • 创建数据库aideepin
    • 执行docs/create.sql
    • 填充openai的secret_key
update adi_sys_config set value = 'my_chatgpt_secret_key' where name = 'secret_key'
  • 修改配置文件

    • mysql: application-[dev|prod].xml中的spring.datasource
    • redis: application-[dev|prod].xml中的spring.data.redis
    • mail: application.xml中的spring.mail

编译及运行

  • 进入项目
cd aideepin
  • 打包:
mvn clean package -Dmaven.test.skip=true
  • 运行

a. jar包启动:

cd adi-chat/target
nohup java -jar -Xms768m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError adi-chat-0.0.1-SNAPSHOT.jar --spring.profiles.active=[dev|prod] dev/null 2>&1 &

b. docker启动

cd adi-chat
docker build . -t aideepin:0.0.1
docker run -d \
  --name=aideepin \
  -e APP_PROFILE=[dev|prod] \
  -v="/data/aideepin/logs:/data/logs" \
  aideepin:0.0.1

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.