Olivier Chafik
ab9a3240a9
JSON schema conversion: ⚡️ faster repetitions, min/maxLength for strings, cap number length (#6555)
* json: rename python schema converter to make import easier
* server: skip null json_schema / grammar fields
* json: deps management for primitive rules (+ allow null values)
* json: optimize repetitions for minItems/maxItems and regexps: `a{,3}` goes from `"a"? "a"? "a"?` (explosive combos) to `(a (a (a)?)?)?`
* grammars: add troubleshooting section to readme
* json: cap length of numbers to 15 digits before/after decimal point
(avoids infinite gen, e.g. "one third" -> `0.333333333333...`)
* json: unify all repetition code (w/ or w/o sep)
* json: support string minLength/maxLength
* server+json: update server/README w/ result_format
* nits
* json: fix type error w/ python 3.8
* json: fix server/README (json_schema in /completion vs. result_format in /v1/chat/completions)
* json: simplify DOT `{"type": "string", "pattern": "^.$"}`
* json: remove recursion in opt_repetitions (avoids Python stack overflow)
* json: rm dead code
* json: rm useless assert & ggml.h import
2024-04-12 19:43:38 +01:00
..
2023-11-07 00:36:23 +03:00
2023-11-02 08:50:16 +02:00
2024-03-23 01:24:36 +01:00
2024-04-11 14:51:07 +02:00
2024-04-11 14:51:07 +02:00
2023-09-15 15:38:27 -04:00
2023-08-21 23:07:43 +03:00
2024-03-10 17:17:43 +02:00
2023-08-21 23:07:43 +03:00
2024-04-12 19:43:38 +01:00
2024-03-22 15:07:44 +02:00
2024-03-21 11:50:43 +00:00
2024-03-25 15:52:41 +08:00
2024-03-24 14:21:17 +01:00
2024-03-23 01:24:36 +01:00
2024-03-24 10:54:07 +02:00
2024-04-08 16:02:30 +03:00
2023-10-12 18:23:18 +03:00
2024-02-25 12:09:09 +02:00
2023-11-13 14:16:23 +02:00