Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit cb2feb9

Browse files
committed
Fix: Include algorithm header file to fix build on distro other than Ubuntu
1 parent 4a4fff4 commit cb2feb9

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

engine/common/download_task_queue.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include <string>
77
#include <unordered_map>
88
#include "common/download_task.h"
9+
#include <algorithm>
910

1011
class DownloadTaskQueue {
1112
private:

engine/repositories/assistant_fs_repository.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include <fstream>
55
#include <mutex>
66
#include "utils/result.hpp"
7+
#include <algorithm>
78

89
cpp::result<std::vector<OpenAi::Assistant>, std::string>
910
AssistantFsRepository::ListAssistants(uint8_t limit, const std::string& order,

engine/repositories/file_fs_repository.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "database/file.h"
66
#include "utils/logging_utils.h"
77
#include "utils/result.hpp"
8+
#include <algorithm>
89

910
std::filesystem::path FileFsRepository::GetFilePath() const {
1011
return data_folder_path_ / kFileContainerFolderName;

engine/repositories/thread_fs_repository.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include <mutex>
44
#include "common/assistant.h"
55
#include "utils/result.hpp"
6+
#include <algorithm>
67

78
cpp::result<std::vector<OpenAi::Thread>, std::string>
89
ThreadFsRepository::ListThreads(uint8_t limit, const std::string& order,

0 commit comments

Comments
 (0)