Skip to content

Commit 056f441

Browse files
JimHsiungyq33victor
authored andcommitted
refactor: add a request struct to store request-related data.
1 parent 01d1216 commit 056f441

File tree

16 files changed

+323
-306
lines changed

16 files changed

+323
-306
lines changed

xllm_service/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ include(cc_test)
44

55
add_subdirectory(proto)
66
add_subdirectory(common)
7+
add_subdirectory(request)
78
add_subdirectory(rpc_service)
89
add_subdirectory(tokenizer)
910
add_subdirectory(chat_template)

xllm_service/common/types.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,6 @@ struct Routing {
5050
std::string debug_string() const { return serialize_to_json().dump(2); }
5151
};
5252

53-
struct ScheduleResult {
54-
std::vector<int32_t> token_ids;
55-
Routing routing;
56-
};
57-
5853
enum class ErrorCode : int32_t {
5954
OK = 0,
6055
INTERNAL_ERROR = 1,

xllm_service/http_service/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ cc_library(
1212
request_tracer.cpp
1313
DEPS
1414
:common
15+
:request
1516
:scheduler
1617
absl::random_random
1718
absl::synchronization

0 commit comments

Comments
 (0)