This is an AI project that integrates various open source AI capabilities.
Let everyone have the ability to use AI.
Node version >= 18 is required.
In root directory, copy an .env.example
file and rename it to .env
, then modify its fields:
# Server Port, eg: 3000
SERVER_PORT=3000
# CUSTOM_PROXY represents an http proxy. If left blank or not passed any value,
# it means that the http proxy is not enabled.
# eg: http://127.0.0.1:7890
CUSTOM_PROXY=
CUSTOM_PROXY
: represents an http proxy. If left blank or not passed any value, it means that the http proxy is not enabled.
- Add a new .env file locally and configure the corresponding parameters.
- First install dependencies, install code using
pnpm i
in the root directory. - Start the project: execute
npm run dev
in the root directory. - Access the project address:
http://localhost:3000
.
Execute npm start
in the root directory.
- Start front-end:
pnpm run dev:fe
. - Start back-end:
pnpm run dev:be
. - Access front-end project address, eg:
http://localhost:8000
.
docker image pull cwy829/ai-assistant
In the command below,
~/docker-data/.env
needs to be replaced with the address where your.env
file is located. For more information on.env
, please refer to here.
docker run -d -p 3000:3000 -v ~/docker-data/.env:/ai-assistant/.env --name ai-assistant cwy829/ai-assistant
For more information about Docker, please refer to the documentation.