mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-13 18:39:48 +00:00
Merge branch 'upstream' into concedo_experimental
# Conflicts: # examples/llava/clip-impl.h # examples/llava/clip.cpp # tests/test-arg-parser.cpp # tests/test-json-schema-to-grammar.cpp
This commit is contained in:
commit
36c8db1248
12 changed files with 464 additions and 657 deletions
|
@ -10,6 +10,9 @@ from typing import Any, List, Optional, Set, Tuple, Union
|
|||
|
||||
def _build_repetition(item_rule, min_items, max_items, separator_rule=None):
|
||||
|
||||
if max_items == 0:
|
||||
return ""
|
||||
|
||||
if min_items == 0 and max_items == 1:
|
||||
return f'{item_rule}?'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue