update poetry lock (#55)

* fix aivvm use invalid cookie

* update poetry lock
This commit is contained in:
Dmitry Afanasyev
2023-11-12 21:17:25 +03:00
committed by GitHub
parent 99d2a21ad4
commit 18e798a399
3 changed files with 103 additions and 97 deletions

View File

@@ -2527,7 +2527,10 @@ boost::asio::awaitable<void> FreeGpt::aivvm(std::shared_ptr<Channel> ch, nlohman
item = std::make_tuple(std::chrono::system_clock::now(), std::move(cookie_str));
}
SPDLOG_INFO("cookie: {}", std::get<1>(item));
bool return_flag{true};
ScopeExit auto_free([&] mutable {
if (!return_flag)
return;
auto& [time_point, cookie] = item;
if (std::chrono::system_clock::now() - time_point < std::chrono::minutes(120))
cookie_queue.enqueue(std::move(item));
@@ -2594,5 +2597,7 @@ boost::asio::awaitable<void> FreeGpt::aivvm(std::shared_ptr<Channel> ch, nlohman
if (!str.empty())
ch->try_send(err, str);
});
if (result == Status::UnexpectedHttpCode)
return_flag = false;
co_return;
}