[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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user