llama.cpp/examples/server/public
Olivier Chafik 84631fe150
json: support integer minimum, maximum, exclusiveMinimum, exclusiveMaximum (#7797)
* json: support minimum for positive integer values

* json: fix min 0

* json: min + max integer constraints

* json: handle negative min / max integer bounds

* json: fix missing paren min/max bug

* json: proper paren fix

* json: integration test for schemas

* json: fix bounds tests

* Update json-schema-to-grammar.cpp

* json: fix negative max

* json: fix negative min (w/ more than 1 digit)

* Update test-grammar-integration.cpp

* json: nit: move string rules together

* json: port min/max integer support to Python & JS

* nit: move + rename _build_min_max_int

* fix min in [1, 9]

* Update test-grammar-integration.cpp

* add C++11-compatible replacement for std::string_view

* add min/max constrained int field to pydantic json schema example

* fix merge

* json: add integration tests for min/max bounds

* reshuffle/merge min/max integ test cases

* nits / cleanups

* defensive code against string out of bounds (apparently different behaviour of libstdc++ vs. clang's libc++, can't read final NULL char w/ former)
2024-06-25 20:06:20 +01:00
..
colorthemes.css server : new UI (#7633) 2024-06-01 22:31:48 +03:00
completion.js server: public: use relative routes for static files (#6325) 2024-03-27 06:55:29 +01:00
favicon.ico server : add themes + favicon (#6848) 2024-05-08 22:12:06 +03:00
index-new.html server : fix JSON-Scheme typo (#7975) 2024-06-23 11:03:08 -04:00
index.html server : new UI (#7633) 2024-06-01 22:31:48 +03:00
index.js server : update js (#7670) 2024-05-31 22:23:04 +03:00
json-schema-to-grammar.mjs json: support integer minimum, maximum, exclusiveMinimum, exclusiveMaximum (#7797) 2024-06-25 20:06:20 +01:00
prompt-formats.js server : new UI (#7633) 2024-06-01 22:31:48 +03:00
style.css server : new UI (#7633) 2024-06-01 22:31:48 +03:00
system-prompts.js server : new UI (#7633) 2024-06-01 22:31:48 +03:00
theme-beeninorder.css server : new UI (#7633) 2024-06-01 22:31:48 +03:00
theme-ketivah.css server : new UI (#7633) 2024-06-01 22:31:48 +03:00
theme-mangotango.css server : new UI (#7633) 2024-06-01 22:31:48 +03:00
theme-playground.css server : new UI (#7633) 2024-06-01 22:31:48 +03:00
theme-polarnight.css server : new UI (#7633) 2024-06-01 22:31:48 +03:00
theme-snowstorm.css server : new UI (#7633) 2024-06-01 22:31:48 +03:00