remove provider aibn (#49)

Remove provider aibn
This commit is contained in:
Dmitry Afanasyev
2023-11-02 00:26:15 +03:00
committed by GitHub
parent e929717b15
commit 2789b33677
8 changed files with 308 additions and 210 deletions

View File

@@ -15,6 +15,7 @@ struct Config {
std::string api_key;
std::vector<std::string> ip_white_list;
std::string zeus{"http://127.0.0.1:8860"};
std::string flaresolverr{"http://127.0.0.1:8191/v1"};
};
YCS_ADD_STRUCT(Config, client_root_path, interval, work_thread_num, host, port, chat_path, providers, enable_proxy,
http_proxy, api_key, ip_white_list, zeus)
http_proxy, api_key, ip_white_list, zeus, flaresolverr)

View File

@@ -26,7 +26,6 @@ public:
boost::asio::awaitable<void> binjie(std::shared_ptr<Channel>, nlohmann::json);
boost::asio::awaitable<void> chatBase(std::shared_ptr<Channel>, nlohmann::json);
boost::asio::awaitable<void> gptGo(std::shared_ptr<Channel>, nlohmann::json);
boost::asio::awaitable<void> aibn(std::shared_ptr<Channel>, nlohmann::json);
boost::asio::awaitable<void> chatForAi(std::shared_ptr<Channel>, nlohmann::json);
boost::asio::awaitable<void> freeGpt(std::shared_ptr<Channel>, nlohmann::json);
boost::asio::awaitable<void> chatGpt4Online(std::shared_ptr<Channel>, nlohmann::json);
@@ -39,6 +38,7 @@ public:
boost::asio::awaitable<void> chatGptAi(std::shared_ptr<Channel>, nlohmann::json);
boost::asio::awaitable<void> fakeGpt(std::shared_ptr<Channel>, nlohmann::json);
boost::asio::awaitable<void> vercel(std::shared_ptr<Channel>, nlohmann::json);
boost::asio::awaitable<void> aivvm(std::shared_ptr<Channel>, nlohmann::json);
private:
boost::asio::awaitable<std::expected<boost::beast::ssl_stream<boost::beast::tcp_stream>, std::string>>