This commit is contained in:
Xuan Son Nguyen
2026-10-02 19:32:50 +02:00
parent bb8bf2c42e
commit 1e265f2111
+4 -2
View File
@@ -159,8 +159,10 @@ static clef_spans clef_get_spans(const llama_ubatch & ubatch) {
// each question needs an option
res.valid = ok && !res.questions.empty() && std::find(has_option.begin(), has_option.end(), false) == has_option.end();
if (!res.valid) {
res.questions = {{ 0, 0, 0 }};
res.options = {{ 0, 0, 0 }};
res.questions.clear();
res.options.clear();
res.questions.push_back({ 0, 0, 0 });
res.options.push_back({ 0, 0, 0 });
}
return res;
}