From 3c2ee0baf7b0738b967b708e51d7dd8a75cd44c4 Mon Sep 17 00:00:00 2001 From: Zain Hasan Date: Wed, 20 Aug 2025 21:41:25 -0400 Subject: [PATCH] add grammar and ebnf --- src/together/types/chat_completions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/together/types/chat_completions.py b/src/together/types/chat_completions.py index 8e5132f..43f675e 100644 --- a/src/together/types/chat_completions.py +++ b/src/together/types/chat_completions.py @@ -29,6 +29,8 @@ class ResponseFormatType(str, Enum): JSON_OBJECT = "json_object" JSON_SCHEMA = "json_schema" REGEX = "regex" + GRAMMAR = "grammar" + EBNF = "ebnf" class FunctionCall(BaseModel):