rename:更名。
This commit is contained in:
parent
abe5590ec9
commit
a983149abc
@ -1,6 +1,6 @@
|
|||||||
cmake_minimum_required(VERSION 3.16)
|
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 17)
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
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)
|
include_directories(3rd)
|
||||||
find_package(CURL REQUIRED)
|
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)
|
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(deepseek-use PRIVATE CURL::libcurl)
|
target_link_libraries(openai-api PRIVATE CURL::libcurl)
|
||||||
|
|
||||||
add_executable(deepseek-client-test client_test.cxx)
|
add_executable(openai-api-test client_test.cxx)
|
1
main.cxx
1
main.cxx
@ -30,6 +30,7 @@ std::string show_api(const std::string& api)
|
|||||||
|
|
||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
std::cout << "Version: 0.9.0" << std::endl;
|
||||||
if (argc < 2) {
|
if (argc < 2) {
|
||||||
std::cout << "note: you can give port to start." << std::endl;
|
std::cout << "note: you can give port to start." << std::endl;
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user