From 625010d42d7fbe0594f165abaf8caeeeb45f3331 Mon Sep 17 00:00:00 2001 From: Xuan Son Nguyen Date: Tue, 18 Nov 2025 17:28:21 +0100 Subject: [PATCH] move enum stop_type to server-task --- tools/server/server-common.h | 7 ------- tools/server/server-task.h | 10 +++++++--- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/tools/server/server-common.h b/tools/server/server-common.h index 32a8c85132..df77ebc876 100644 --- a/tools/server/server-common.h +++ b/tools/server/server-common.h @@ -59,13 +59,6 @@ static T json_value(const json & body, const std::string & key, const T & defaul } } -enum stop_type { - STOP_TYPE_NONE, - STOP_TYPE_EOS, - STOP_TYPE_WORD, - STOP_TYPE_LIMIT, -}; - // https://community.openai.com/t/openai-chat-list-of-error-codes-and-types/357791/11 enum error_type { ERROR_TYPE_INVALID_REQUEST, diff --git a/tools/server/server-task.h b/tools/server/server-task.h index b062e33632..0271caae11 100644 --- a/tools/server/server-task.h +++ b/tools/server/server-task.h @@ -2,9 +2,6 @@ #include "common.h" #include "llama.h" -#include "chat.h" -#include "sampling.h" -#include "json-schema-to-grammar.h" #include #include @@ -37,6 +34,13 @@ enum oaicompat_type { OAICOMPAT_TYPE_EMBEDDING, }; +enum stop_type { + STOP_TYPE_NONE, + STOP_TYPE_EOS, + STOP_TYPE_WORD, + STOP_TYPE_LIMIT, +}; + struct task_params { bool stream = true; bool include_usage = false;