mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 20:34:54 +00:00
Add json_schema as an alias for JSON Grammar
This commit is contained in:
parent
9c9ef37c56
commit
a1803bb780
@ -120,7 +120,7 @@ pub(crate) enum GrammarType {
|
||||
/// JSON Schema is a declarative language that allows to annotate JSON documents
|
||||
/// with types and descriptions.
|
||||
#[serde(rename = "json")]
|
||||
#[serde(alias = "json_object")]
|
||||
#[serde(alias = "json_object", alias = "json_schema")]
|
||||
#[schema(example = json ! ({"properties": {"location":{"type": "string"}}}))]
|
||||
Json(serde_json::Value),
|
||||
#[serde(rename = "regex")]
|
||||
|
Loading…
Reference in New Issue
Block a user