From 8f7ffe4e0a1ed9ce3a4c99ded35c941ea1933406 Mon Sep 17 00:00:00 2001 From: sunjiayu <767978963@qq.com> Date: Sun, 14 Jul 2024 10:26:04 +0800 Subject: [PATCH] change openai root --- liboai/components/files.cpp | 4 ++-- liboai/include/core/network.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/liboai/components/files.cpp b/liboai/components/files.cpp index 955972e..c6ff0ee 100644 --- a/liboai/components/files.cpp +++ b/liboai/components/files.cpp @@ -139,7 +139,7 @@ liboai::FutureResponse liboai::Files::retrieve_async(const std::string& file_id) bool liboai::Files::download(const std::string& file_id, const std::string& save_to) const & noexcept(false) { return Network::Download( save_to, - ("https://service-33nzh5ri-1255586470.hk.tencentapigw.cn/v1/files/" + file_id + "/content"), + ("https://mikiai-openai-grutefnkai.us-west-1.fcapp.run/files/" + file_id + "/content"), this->auth_.GetAuthorizationHeaders() ); } @@ -148,7 +148,7 @@ std::future liboai::Files::download_async(const std::string& file_id, cons return std::async( std::launch::async, &liboai::Network::Download, save_to, - ("https://service-33nzh5ri-1255586470.hk.tencentapigw.cn/v1/files/" + file_id + "/content"), + ("https://mikiai-openai-grutefnkai.us-west-1.fcapp.run/files/" + file_id + "/content"), this->auth_.GetAuthorizationHeaders() ); } \ No newline at end of file diff --git a/liboai/include/core/network.h b/liboai/include/core/network.h index db889cf..1ee48dc 100644 --- a/liboai/include/core/network.h +++ b/liboai/include/core/network.h @@ -152,7 +152,7 @@ namespace liboai { return false; } - const std::string openai_root_ = "https://service-33nzh5ri-1255586470.hk.tencentapigw.cn/v1"; + const std::string openai_root_ = "https://mikiai-openai-grutefnkai.us-west-1.fcapp.run"; const std::string azure_root_ = ".openai.azure.com/openai"; private: