File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2199,7 +2199,7 @@ struct server_context {
21992199
22002200 if (slot.n_sent_text == 0 && slot.has_next_token && !slot.params .start_strings .empty ())
22012201 {
2202- size_t max_start_string_size = 0 ;
2202+ size_t max_start_string_size = 0 ;
22032203 for (auto start_string: slot.params .start_strings )
22042204 {
22052205 max_start_string_size = std::max (max_start_string_size, start_string.size ());
@@ -2218,12 +2218,12 @@ struct server_context {
22182218 {
22192219 found_pos = slot.generated_text .find (start_string,search_pos);
22202220 if (found_pos != slot.generated_text .npos ) {
2221- found = true ;
2221+ found = true ;
22222222 found_string = start_string;
22232223 break ;
22242224 }
22252225 }
2226-
2226+
22272227 if (found && slot.generated_text .size () > (found_pos + found_string.size ()) ) {
22282228 slot.generated_text .erase (
22292229 slot.generated_text .begin (),
You can’t perform that action at this time.
0 commit comments