.
├── CMakeLists.txt
├── include
│ ├── Acceptor.hpp
│ ├── EventLoop.hpp
│ ├── InetAddress.hpp
│ ├── LLMApi.hpp
│ ├── Socket.hpp
│ ├── SocketIO.hpp
│ └── TcpConnection.hpp
├── main.cpp
├── python_script
│ ├── getReply.py
│ ├── hello_qwen.py
│ ├── __pycache__
│ │ └── getReply.cpython-311.pyc
│ └── showPackage.py
├── README.md
├── source
│ ├── Acceptor.cpp
│ ├── EventLoop.cpp
│ ├── InetAddress.cpp
│ ├── Socket.cpp
│ ├── SocketIO.cpp
│ └── TcpConnection.cpp
└── tests
├── testLLMApi
└── testLLMApi.cpppython3.11 + Linux
pip3 install openai
pip3 install openai --upgrade
pip3 install pybind11将 /python_script/getReply line 10中的 api_key="" 当中填入相关的api_key ./CMakeLists.txt 相关包的位置改为本机上相关包的路径
cmake -B build
cmake --build buildnc ip port
进行提问