Skip to content

Commit 3fda778

Browse files
author
ochafik
committed
Merge branch 'json-noadd' into json-order
2 parents 2159c28 + 91d0ad7 commit 3fda778

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

grammars/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ space ::= | " " | "\n" [ \t]{0,20}
182182

183183
Here is also a list of known limitations (contributions welcome):
184184

185-
- `additionalProperties` defaults to `false` (faster grammars + reduces hallucinations)
185+
- `additionalProperties` defaults to `false` (produces faster grammars + reduces hallucinations).
186+
- `"additionalProperties": true` may produce keys that contain unescaped newlines.
186187
- Unsupported features are skipped silently. It is currently advised to use the command-line Python converter (see above) to see any warnings, and to inspect the resulting grammar / test it w/ [llama-gbnf-validator](../examples/gbnf-validator/gbnf-validator.cpp).
187188
- Can't mix `properties` w/ `anyOf` / `oneOf` in the same type (https://github.com/ggerganov/llama.cpp/issues/7703)
188189
- [prefixItems](https://json-schema.org/draft/2020-12/json-schema-core#name-prefixitems) is broken (but [items](https://json-schema.org/draft/2020-12/json-schema-core#name-items) works)

0 commit comments

Comments
 (0)