TC: Allow setting null JSON schema (#4746)

* TC: Allow setting empty JSON schema

* Fix check for llamacpp schema

* Handle grammar/schema for Aphrodite

* Conditional include for guided_json

* Update default presets with null value

* Conditional include into payload for grammar/schema
This commit is contained in:
Cohee
2025-11-07 23:39:52 +02:00
committed by GitHub
parent 09b8d59f4d
commit 5837f28599
8 changed files with 31 additions and 24 deletions
+1 -1
View File
@@ -44,7 +44,7 @@
"guidance_scale": 1,
"negative_prompt": "",
"grammar_string": "",
"json_schema": {},
"json_schema": null,
"banned_tokens": "",
"sampler_priority": [
"repetition_penalty",
@@ -44,7 +44,7 @@
"guidance_scale": 1,
"negative_prompt": "",
"grammar_string": "",
"json_schema": {},
"json_schema": null,
"banned_tokens": "",
"sampler_priority": [
"repetition_penalty",
+1 -1
View File
@@ -44,7 +44,7 @@
"guidance_scale": 1,
"negative_prompt": "",
"grammar_string": "",
"json_schema": {},
"json_schema": null,
"banned_tokens": "",
"sampler_priority": [
"repetition_penalty",
@@ -44,7 +44,7 @@
"guidance_scale": 1,
"negative_prompt": "",
"grammar_string": "",
"json_schema": {},
"json_schema": null,
"banned_tokens": "",
"sampler_priority": [
"repetition_penalty",
@@ -44,7 +44,7 @@
"guidance_scale": 1,
"negative_prompt": "",
"grammar_string": "",
"json_schema": {},
"json_schema": null,
"banned_tokens": "",
"sampler_priority": [
"repetition_penalty",
@@ -44,7 +44,7 @@
"guidance_scale": 1,
"negative_prompt": "",
"grammar_string": "",
"json_schema": {},
"json_schema": null,
"banned_tokens": "",
"sampler_priority": [
"repetition_penalty",