llmapi is developed and published mcpp-first, but the library itself is a
plain C++23 module package and can also be consumed from an
xmake project.
- C++ Compiler: GCC 14+, Clang 18+, or MSVC 2022+ with C++23 support
- Build System: xmake 3.0.0+
- Dependencies:
mbedtlsis resolved automatically by xmake
Add the mcpplibs xmake repository and require the package in your xmake.lua:
add_repositories("mcpplibs-index https://github.com/mcpplibs/mcpplibs-index.git")
add_requires("llmapi 0.1.0")
target("demo")
set_kind("binary")
set_languages("c++23")
set_policy("build.c++.modules", true)
add_files("src/*.cpp")
add_packages("llmapi")git clone https://github.com/mcpplibs/llmapi.git
cd llmapi
xmake
xmake run hello_mcpp
xmake run basic
xmake run chat- The xmake package tracks the
mcpplibs-indexrepository and may lag behind the mcpp package index (mcpp-index). - For the mcpp workflow (recommended) see Getting Started and the project README.