chat : implement inkling parser (#32381)
This commit is contained in:
1 parent
4303cd94ae
commit
4ddf2b9470
9 files changed
+532
-54
No files matched your search
@@ -403,6 +403,8 @@ size_t llama_grammar_trigger_pattern::find(const std::string & input) const {
|
||||
if (std::regex_match(input, match, regex)) {
|
||||
return find_start_pos(match);
|
||||
}
|
||||
// some regex implementations match ^/$ at line breaks
|
||||
return std::string::npos;
|
||||
}
|
||||
|
||||
// search anywhere
|
||||
|
||||
Reference in new issue
Block a user