Skip to content

Commit 1b1629d

Browse files
committed
Add reasoning delimiters
1 parent c0ca21d commit 1b1629d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/main/main.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,15 @@ class partial_formatter {
104104
std::vector<output> result;
105105
for (const auto & diff : diffs) {
106106
if (!diff.reasoning_content_delta.empty()) {
107+
if (!had_reasoning) {
108+
result.push_back({"Thinking... ", REASONING});
109+
}
107110
result.push_back({diff.reasoning_content_delta, REASONING});
108111
had_reasoning = true;
109112
}
110113
if (!diff.content_delta.empty()) {
111114
if (had_reasoning) {
112-
result.push_back({"\n", REASONING});
115+
result.push_back({" ...\n", REASONING});
113116
had_reasoning = false;
114117
}
115118
result.push_back({diff.content_delta, CONTENT});

0 commit comments

Comments
 (0)