NineAi-ChatGPT系统源码 最新版ChatGPT对话系统 2024.8完善 ChatGPT工作原理

Nine AI.ChatGPT is an artificial intelligence technology-driven natural language processing tool developed based on ChatGPT. It can conduct dialogue by learning and understanding human language, and can also interact according to the chat context, truly chatting and communicating like humans., can even complete tasks such as writing emails, video scripts, copywriting, translation, coding, and writing papers.

operating environment
1.nodejs version > 16
2.pnpm version > 6
3.mysql version >= 5.7
4.redis

directory structure
chat client code
admin management code
service server code

local development
Three-terminal unified command
pnpm install installation dependencies
pnpm dev launch project
pnpm build packaging project

startup project
Install and rely on pnpm i separately.
First start the server and enter the service to create the.env file, in which to modify the test database information and pnpm dev after redis configuration is completed.
Database Launching a project through orm mapping automatically creates the database.
After the boot is complete, you can open chat admin pnpm dev to boot.

on authorizing
The authorization module is under the src/modules/globalConfig/globalConfig.service.ts file.
The authorization can be removed by removing the contents of the function NineAiCheckAuth and removing NineAiCheckAuth from onModuleInit.
The checkauth scheduled task can also be removed from the corresponding scheduled task in src/modules/task/task.service.ts.

Packaging path problem
service
Back-end services can be built directly with pnpm.env is an environment variable file that needs to be mounted later or there is an example file.env.example for creating a project.
The packaging command will confuse the code. After packaging, only these files in the figure below are needed, and other files are no longer needed.
These seven files are needed after the backend service is packaged.

chat
The configuration file for front-end project packaging is.env.production and the same as admin.
Just change this variable. If you deploy it separately, fill in your online back-end service address. It is recommended to separate the first line of addresses and fill in your own online address.

admin
The manager modifies this file in the same way and in the same way.
Similarly, you only need to open the content of the red box to separate the deployment, and replace it with your own online address. The rest of the configuration does not need to be modified and is temporarily unavailable.

other documents
Refresh 404 questions
Front-end history project refreshes with 404, and Nginx needs to be configured.

read more
Resource download
Price25 Meteor coin
The use is limited to testing, experiments, and research purposes. It is prohibited for all commercial operations. This team is not responsible for any illegal behavior of users during use. Please self-test all source codes! There is no guarantee of the integrity and validity of your source code. All source code is collected from the entire network
Original link:https://bcbccb.cn/en/18730.html, please indicate the source for reprinting. Disclaimer: This resource has not been authorized by the original rights holder and is not commercially available. It can only be used to learn and analyze the underlying code, CSS, etc., and is prohibited for commercial purposes. Any relevant disputes and legal liabilities arising from unauthorized commercial use shall be fully borne by the user. Everyone is responsible to support genuine copies. Please delete them within 24 hours after downloading. Thank you for your support!
0

Comments0

量推奥玩娱乐电光流光版+大联盟
Volume promotion of Olympic Games Entertainment Lightning Flash Edition + Major League
Someone bought it 9 minutes ago Go and have a look

Site Announcements

The source code (theme/plug-in/application source code) and other resources provided by this site are only for learning and exchange

Commercial use is prohibited, otherwise all consequences will be borne by the downloading user!

Some resources are collected or copied online. If they infringe on your legitimate rights and interests, please write to us.

Currently, members have a big reward, and the current price for a lifetime member is 299 gold coins.Recent price adjustments

Join quickly, opportunities wait for no one! immediately participated in

Captcha

Fast login to social accounts

en_USEnglish