- Implemented the OpenAI-compatible AI provider plugin, including configuration, chat, and chat_stream functionalities. - Added support for SSE streaming and tool calls. - Integrated Boost.JSON for JSON handling. - Created CMake configuration for the plugin. - Added error handling and logging throughout the plugin.
17 lines
413 B
CMake
17 lines
413 B
CMake
find_package(Boost REQUIRED CONFIG)
|
|
find_package(OpenSSL REQUIRED CONFIG)
|
|
|
|
add_library(plugin-network SHARED src/network_plugin.cpp)
|
|
|
|
target_link_libraries(plugin-network PRIVATE
|
|
dstalk
|
|
boost::boost
|
|
openssl::openssl
|
|
)
|
|
|
|
set_target_properties(plugin-network PROPERTIES
|
|
PREFIX ""
|
|
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/plugins"
|
|
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/plugins"
|
|
)
|