From 758814be24297f571bfbdde4e7ce071be567a473 Mon Sep 17 00:00:00 2001 From: Hassan El Mghari Date: Tue, 17 Dec 2024 13:37:01 -0500 Subject: [PATCH 1/2] support json schema for structured outputs --- src/together/types/chat_completions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/together/types/chat_completions.py b/src/together/types/chat_completions.py index 7f4159f8..9276d3e8 100644 --- a/src/together/types/chat_completions.py +++ b/src/together/types/chat_completions.py @@ -27,6 +27,7 @@ class MessageRole(str, Enum): class ResponseFormatType(str, Enum): JSON_OBJECT = "json_object" + JSON_SCHEMA = "json_schema" class FunctionCall(BaseModel): From f15bc99e714396f92ad13cefada56401ed220f7e Mon Sep 17 00:00:00 2001 From: orangetin <126978607+orangetin@users.noreply.github.com> Date: Tue, 17 Dec 2024 15:30:28 -0600 Subject: [PATCH 2/2] bump version to 1.3.8 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 53d2739b..082fc899 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,7 @@ build-backend = "poetry.masonry.api" [tool.poetry] name = "together" -version = "1.3.7" +version = "1.3.8" authors = [ "Together AI " ]