[CI] Add test case with JSON schema using references + use xgrammar by default with OpenAI parse (#10935)

Signed-off-by: mgoin <michael@neuralmagic.com>
This commit is contained in:
Michael Goin
2024-12-16 22:39:58 -05:00
committed by GitHub
parent 35bae114a8
commit 0064f697d3
3 changed files with 68 additions and 1 deletions

View File

@@ -387,7 +387,7 @@ class ChatCompletionRequest(OpenAIBaseModel):
assert json_schema is not None
self.guided_json = json_schema.json_schema
if self.guided_decoding_backend is None:
self.guided_decoding_backend = "lm-format-enforcer"
self.guided_decoding_backend = "xgrammar"
guided_decoding = GuidedDecodingParams.from_optional(
json=self._get_guided_json_from_tool() or self.guided_json,