The latest SparkAI creation system ChatGPT program source code + detailed graphic tutorials/support GPT-4/support AI painting/Prompt application

1.SparkAI creation system

How to build and deploy the AI ​​creation ChatGPT system? Let me write a detailed graphic tutorial here! SparkAi uses Nestjs and Vue3 framework technology to continuously integrate AI capabilities into the AIGC system!

1.1 Core functions of the program

The program already supports ChatGPT3.5/4.0 questioning, AI painting, Midjourney painting (fully customizable parameters), Midjourney drawing from pictures, Dall-E2 painting, mind map generation, knowledge base (customizable training), AI painting Plaza, invitation + agent distribution model, user daily check-in function, session record saving, visitor experience mode, WeChat official account + email + mobile phone number registration and login, other free version feature updates in the future...

1.2 version update log

SparkAI system【V2.6.1】September core function update log

  • Added visitor experience function, configurable daily non-login usage quota, and registered account can synchronize visitor usage data. Client Settings->Guest Settings
  • Add custom configuration copyright information at the bottom of the background.
  • Add Hupijiao payment custom gateway.
  • Violation sensitive word detection and recording function.
  • Maximum input character limit

2. System Demonstration

SparkAiicon-default.png?t=N7T8https://ai.idcyli.com/chat

 

3. Function module

3.1 Questions about GPT model

GPT online questioning has been supported

3.2 Application workbench

3.2.1 prompt knowledge base

3.2.2 Support user-defined knowledge base

3.3 Midjourney Professional Painting

Vincent picture:

Draw pictures from pictures: 

3.4 Dall-E2 Painting

3.5 Mind map generation​

3.6 AI Painting Square

4. Source code system

4.1 Front-end demo site

4.2 SparkAi source code download

5. Detailed construction tutorial

The following tutorial uses Linux Pagoda to build and deploy

5.1 Basic env environment configuration

In the code, we provide the basic environment variable file configuration file env.example. Before using it, remove the suffix and change it to the .env file. We only need to configure the following things in the env environment configuration file.

  • Authorization code, IP configuration

  • Mail service configuration

  • These three items of mysql database are basic configurations. Mysql and authorization are necessary. Only when mysql and authorization are configured can the project be started successfully. The mail service can be added later.

5.2 env.env file configuration

# 服务器ip(必填项)
SPARK_AI_HOST=
# 授权码
SPARK_AI_KEY=(必填项)

# mysql (必填项)
DB_HOST=localhost
DB_PORT=3306
DB_USER=数据库用户名
DB_PASS=数据库密码
DB_DATABASE=数据库名
DB_LOG=false
DB_SYNC=true

#  mailer 邮件服务
MAILER_HOST=smtp.163.com
MAILER_PORT=465
MAILER_USER=发信邮箱
MAILER_PASS=邮箱发信密钥
MAILER_FROM=发信邮箱

# Redis
REDIS_PORT=6379
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=

# mj并发数
CONCURRENCY=3

# jwt token
JWT_SECRET=chat-spark
# jwt token 过期时间
JWT_EXPIRESIN=7d
# 自定义端口
PORT=9520

6. Environment installation

  • Nginx >= 1.19.8

  • MySQL >= 5.7 or MySQL 8.0

  • PHP-7.4

  • PM2 Manager 5.5

  • Redis 7.0.11

  • Node version: >=16.19.1

Detailed tutorial:

Guess you like

Origin blog.csdn.net/weixin_43227851/article/details/132769225