DO NOT commit to the main branch, commit to a new branch make Merge Request
DO NOT operate under /root/vv/LunaAgent, ANY changes in this directory will be reset by
git reset --hard
不要向 main 分支 commit, commit 到新分支并提 Merge Request.
不要进入 /root/vv/LunaAgent 进行任何操作,所有改动将被
git reset --hard
git clone git@ysgit.lunalabs.cn:lunalabs/luna-models/LunaAgent.git && cd LunaAgent# although it is recoverable, try not to mess up this env
# if you need to pip / conda install new packages, go to option 2
conda activate luna-agentconda create -n luna-agent-dev-<your_alias> python=3.10
conda activate luna-agent-dev-<your_alias>
pip install -e ./Start 3 tmux panels and run these command to start chat agent, websocket middleware and webui frontend:
You should edit env.sh in case of port conflicts, which means another user is developing on 4090-1.
-
Agent:
source env.sh PYTHONPATH=./luna_agent python luna_agent/chat.py -
Websocket:
source env.sh cd debug && python middleware.py
-
WebUI:
source env.sh cd debug && python app.py
On your local machine, run the following command with ports set in env.sh:
ssh -N -L 28001:localhost:28001 -L 28002:localhost:28002 -L 28003:localhost:28003 4090-1Open http://localhost:28003 and start session. Note that the frontend is simplified for development with chat functions only. Contact 蒋鹏 for deployment.
Commit and push the new branch. Create Merge Reuqest.
Under Construction