From a983149abcb20e9267f502ae74d3cf5cb5fce76c Mon Sep 17 00:00:00 2001 From: taynpg Date: Wed, 5 Mar 2025 09:23:50 +0800 Subject: [PATCH] =?UTF-8?q?rename=EF=BC=9A=E6=9B=B4=E5=90=8D=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 8 ++++---- main.cxx | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5949349..fb69c3c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.16) -project(deepseek-use LANGUAGES CXX) +project(openai-api LANGUAGES CXX) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) @@ -24,7 +24,7 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/${CMAKE_BUILD_TYPE} include_directories(3rd) find_package(CURL REQUIRED) -add_executable(deepseek-use main.cxx zapi.h zapi.cxx jsondata.h jsondata.cxx handle.h handle.cxx server.h server.cxx) -target_link_libraries(deepseek-use PRIVATE CURL::libcurl) +add_executable(openai-api main.cxx zapi.h zapi.cxx jsondata.h jsondata.cxx handle.h handle.cxx server.h server.cxx) +target_link_libraries(openai-api PRIVATE CURL::libcurl) -add_executable(deepseek-client-test client_test.cxx) \ No newline at end of file +add_executable(openai-api-test client_test.cxx) \ No newline at end of file diff --git a/main.cxx b/main.cxx index 3efa909..c5033e3 100644 --- a/main.cxx +++ b/main.cxx @@ -30,6 +30,7 @@ std::string show_api(const std::string& api) int main(int argc, char* argv[]) { + std::cout << "Version: 0.9.0" << std::endl; if (argc < 2) { std::cout << "note: you can give port to start." << std::endl; return 0;