Skip to content

Commit da1e34a

Browse files
committed
remove old harmony parsing
1 parent 4a303cf commit da1e34a

File tree

4 files changed

+1
-122
lines changed

4 files changed

+1
-122
lines changed

common/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ add_library(${TARGET} STATIC
7070
sampling.h
7171
speculative.cpp
7272
speculative.h
73-
parsers/harmony.cpp
74-
parsers/harmony.h
7573
)
7674

7775
if (BUILD_SHARED_LIBS)

common/chat-parser.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ bool common_chat_msg_parser::add_tool_calls(const json & arr) {
7777
}
7878
void common_chat_msg_parser::finish() {
7979
if (!is_partial_ && pos_ != input_.size()) {
80-
//throw std::runtime_error("Unexpected content at end of input");// + input_.substr(pos_));
81-
throw std::runtime_error("Unexpected content at end of input" + input_.substr(pos_));
80+
throw std::runtime_error("Unexpected content at end of input");// + input_.substr(pos_));
8281
}
8382
}
8483

common/parsers/harmony.cpp

Lines changed: 0 additions & 89 deletions
This file was deleted.

common/parsers/harmony.h

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)