together 2.0.0a12__py3-none-any.whl → 2.0.0a13__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- together/_version.py +1 -1
- together/resources/chat/completions.py +20 -0
- together/types/chat/completion_create_params.py +4 -0
- {together-2.0.0a12.dist-info → together-2.0.0a13.dist-info}/METADATA +1 -1
- {together-2.0.0a12.dist-info → together-2.0.0a13.dist-info}/RECORD +8 -8
- {together-2.0.0a12.dist-info → together-2.0.0a13.dist-info}/WHEEL +0 -0
- {together-2.0.0a12.dist-info → together-2.0.0a13.dist-info}/entry_points.txt +0 -0
- {together-2.0.0a12.dist-info → together-2.0.0a13.dist-info}/licenses/LICENSE +0 -0
together/_version.py
CHANGED
|
@@ -62,6 +62,8 @@ class CompletionsResource(SyncAPIResource):
|
|
|
62
62
|
],
|
|
63
63
|
str,
|
|
64
64
|
],
|
|
65
|
+
chat_template_kwargs: object | Omit = omit,
|
|
66
|
+
compliance: Literal["hipaa"] | Omit = omit,
|
|
65
67
|
context_length_exceeded_behavior: Literal["truncate", "error"] | Omit = omit,
|
|
66
68
|
echo: bool | Omit = omit,
|
|
67
69
|
frequency_penalty: float | Omit = omit,
|
|
@@ -208,6 +210,8 @@ class CompletionsResource(SyncAPIResource):
|
|
|
208
210
|
str,
|
|
209
211
|
],
|
|
210
212
|
stream: Literal[True],
|
|
213
|
+
chat_template_kwargs: object | Omit = omit,
|
|
214
|
+
compliance: Literal["hipaa"] | Omit = omit,
|
|
211
215
|
context_length_exceeded_behavior: Literal["truncate", "error"] | Omit = omit,
|
|
212
216
|
echo: bool | Omit = omit,
|
|
213
217
|
frequency_penalty: float | Omit = omit,
|
|
@@ -353,6 +357,8 @@ class CompletionsResource(SyncAPIResource):
|
|
|
353
357
|
str,
|
|
354
358
|
],
|
|
355
359
|
stream: bool,
|
|
360
|
+
chat_template_kwargs: object | Omit = omit,
|
|
361
|
+
compliance: Literal["hipaa"] | Omit = omit,
|
|
356
362
|
context_length_exceeded_behavior: Literal["truncate", "error"] | Omit = omit,
|
|
357
363
|
echo: bool | Omit = omit,
|
|
358
364
|
frequency_penalty: float | Omit = omit,
|
|
@@ -497,6 +503,8 @@ class CompletionsResource(SyncAPIResource):
|
|
|
497
503
|
],
|
|
498
504
|
str,
|
|
499
505
|
],
|
|
506
|
+
chat_template_kwargs: object | Omit = omit,
|
|
507
|
+
compliance: Literal["hipaa"] | Omit = omit,
|
|
500
508
|
context_length_exceeded_behavior: Literal["truncate", "error"] | Omit = omit,
|
|
501
509
|
echo: bool | Omit = omit,
|
|
502
510
|
frequency_penalty: float | Omit = omit,
|
|
@@ -532,6 +540,8 @@ class CompletionsResource(SyncAPIResource):
|
|
|
532
540
|
{
|
|
533
541
|
"messages": messages,
|
|
534
542
|
"model": model,
|
|
543
|
+
"chat_template_kwargs": chat_template_kwargs,
|
|
544
|
+
"compliance": compliance,
|
|
535
545
|
"context_length_exceeded_behavior": context_length_exceeded_behavior,
|
|
536
546
|
"echo": echo,
|
|
537
547
|
"frequency_penalty": frequency_penalty,
|
|
@@ -603,6 +613,8 @@ class AsyncCompletionsResource(AsyncAPIResource):
|
|
|
603
613
|
],
|
|
604
614
|
str,
|
|
605
615
|
],
|
|
616
|
+
chat_template_kwargs: object | Omit = omit,
|
|
617
|
+
compliance: Literal["hipaa"] | Omit = omit,
|
|
606
618
|
context_length_exceeded_behavior: Literal["truncate", "error"] | Omit = omit,
|
|
607
619
|
echo: bool | Omit = omit,
|
|
608
620
|
frequency_penalty: float | Omit = omit,
|
|
@@ -749,6 +761,8 @@ class AsyncCompletionsResource(AsyncAPIResource):
|
|
|
749
761
|
str,
|
|
750
762
|
],
|
|
751
763
|
stream: Literal[True],
|
|
764
|
+
chat_template_kwargs: object | Omit = omit,
|
|
765
|
+
compliance: Literal["hipaa"] | Omit = omit,
|
|
752
766
|
context_length_exceeded_behavior: Literal["truncate", "error"] | Omit = omit,
|
|
753
767
|
echo: bool | Omit = omit,
|
|
754
768
|
frequency_penalty: float | Omit = omit,
|
|
@@ -894,6 +908,8 @@ class AsyncCompletionsResource(AsyncAPIResource):
|
|
|
894
908
|
str,
|
|
895
909
|
],
|
|
896
910
|
stream: bool,
|
|
911
|
+
chat_template_kwargs: object | Omit = omit,
|
|
912
|
+
compliance: Literal["hipaa"] | Omit = omit,
|
|
897
913
|
context_length_exceeded_behavior: Literal["truncate", "error"] | Omit = omit,
|
|
898
914
|
echo: bool | Omit = omit,
|
|
899
915
|
frequency_penalty: float | Omit = omit,
|
|
@@ -1038,6 +1054,8 @@ class AsyncCompletionsResource(AsyncAPIResource):
|
|
|
1038
1054
|
],
|
|
1039
1055
|
str,
|
|
1040
1056
|
],
|
|
1057
|
+
chat_template_kwargs: object | Omit = omit,
|
|
1058
|
+
compliance: Literal["hipaa"] | Omit = omit,
|
|
1041
1059
|
context_length_exceeded_behavior: Literal["truncate", "error"] | Omit = omit,
|
|
1042
1060
|
echo: bool | Omit = omit,
|
|
1043
1061
|
frequency_penalty: float | Omit = omit,
|
|
@@ -1073,6 +1091,8 @@ class AsyncCompletionsResource(AsyncAPIResource):
|
|
|
1073
1091
|
{
|
|
1074
1092
|
"messages": messages,
|
|
1075
1093
|
"model": model,
|
|
1094
|
+
"chat_template_kwargs": chat_template_kwargs,
|
|
1095
|
+
"compliance": compliance,
|
|
1076
1096
|
"context_length_exceeded_behavior": context_length_exceeded_behavior,
|
|
1077
1097
|
"echo": echo,
|
|
1078
1098
|
"frequency_penalty": frequency_penalty,
|
|
@@ -60,6 +60,10 @@ class CompletionCreateParamsBase(TypedDict, total=False):
|
|
|
60
60
|
[See all of Together AI's chat models](https://docs.together.ai/docs/serverless-models#chat-models)
|
|
61
61
|
"""
|
|
62
62
|
|
|
63
|
+
chat_template_kwargs: object
|
|
64
|
+
|
|
65
|
+
compliance: Literal["hipaa"]
|
|
66
|
+
|
|
63
67
|
context_length_exceeded_behavior: Literal["truncate", "error"]
|
|
64
68
|
"""
|
|
65
69
|
Defined the behavior of the API when max_tokens exceed the maximum context
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: together
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.0a13
|
|
4
4
|
Summary: The official Python library for the together API
|
|
5
5
|
Project-URL: Homepage, https://github.com/togethercomputer/together-py
|
|
6
6
|
Project-URL: Repository, https://github.com/togethercomputer/together-py
|
|
@@ -11,7 +11,7 @@ together/_resource.py,sha256=-ZTq9O5qf2YsgjJk_gwJs-CM_OG4p6gdMLcNWjuxFwQ,1112
|
|
|
11
11
|
together/_response.py,sha256=lvqEsCbpD8SRJTjlhhUFGbnLUR_4-Qva-OApxfVdiY4,28800
|
|
12
12
|
together/_streaming.py,sha256=sk6fVYbpdO3Y-0S5iwZTHQJ3N24UkK0KaupgUTftWZk,11825
|
|
13
13
|
together/_types.py,sha256=LzaeqN09mUAEvRg_XrLzihdOaW0D_R9qrG7jKsFjnQY,7297
|
|
14
|
-
together/_version.py,sha256=
|
|
14
|
+
together/_version.py,sha256=BExhELPV8VqVuQbk2T-lGqnaFEZgTxL2XCJuRpZaadk,169
|
|
15
15
|
together/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
together/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305
|
|
17
17
|
together/_utils/_compat.py,sha256=rN17SSvjMoQE1GmKFTLniRuG1sKj2WAD5VjdLPeRlF0,1231
|
|
@@ -70,7 +70,7 @@ together/resources/audio/translations.py,sha256=VPkg5ZUDw5LZwiaRYqEjETKwSMMU1odT
|
|
|
70
70
|
together/resources/audio/voices.py,sha256=Lj9DtOcv_Dhaq3E5p7Oty1T_JkhrsGDZcDF91HHA3Yw,4905
|
|
71
71
|
together/resources/chat/__init__.py,sha256=BVAfz9TM3DT5W9f_mt0P9YRxL_MsUxKCWAH6u1iogmA,1041
|
|
72
72
|
together/resources/chat/chat.py,sha256=aJQQ4Zlof2NlrG53auI5omXPJVdG3c_vwnEkj-ahLG4,3688
|
|
73
|
-
together/resources/chat/completions.py,sha256=
|
|
73
|
+
together/resources/chat/completions.py,sha256=u45dEoSvgyJZ86yI3-CZzPDOVOjBi_h9ZaxXBhXZPaw,57312
|
|
74
74
|
together/resources/code_interpreter/__init__.py,sha256=qeNVuBUuYy66RDhyh4RDx_xsf0gTMIrrZkZHpkPy9r0,1146
|
|
75
75
|
together/resources/code_interpreter/code_interpreter.py,sha256=ZrWQIn5FO-uau3qTt_HhsHiaclM_ZNfOqZI_AWT2SMk,10373
|
|
76
76
|
together/resources/code_interpreter/sessions.py,sha256=Sl8X6-r1gds2VHhzpjPhfwYNTciZCJxAH-YjJerA_eU,5020
|
|
@@ -156,11 +156,11 @@ together/types/chat/chat_completion_structured_message_text_param.py,sha256=ogWM
|
|
|
156
156
|
together/types/chat/chat_completion_structured_message_video_url_param.py,sha256=i0VjxkE6xEYr11YBkOd2pkDSu01EiTbYjFDAkt0RE0g,504
|
|
157
157
|
together/types/chat/chat_completion_usage.py,sha256=tkDp4y7jzxFKtK3tXe_bJb7Coew-nt8u3S7bZCvcVXo,269
|
|
158
158
|
together/types/chat/chat_completion_warning.py,sha256=_Dp7YKlxyY2HeZopTvT-Go7qqKsbj3h_Vv06uLzgsTU,216
|
|
159
|
-
together/types/chat/completion_create_params.py,sha256=
|
|
159
|
+
together/types/chat/completion_create_params.py,sha256=GpOQIpL2hODOV-iPoilHxo5UYP_KHJ-zdZMP-VW87-g,13755
|
|
160
160
|
together/types/code_interpreter/__init__.py,sha256=dAXfb3ryLMtcBalCfxxNu2wJVswVP8G1xXryZnahPQY,201
|
|
161
161
|
together/types/code_interpreter/session_list_response.py,sha256=TRxLGFTmIY-KLpStKjJtsrm4EI6BBvakpx43B6pkhnw,662
|
|
162
|
-
together-2.0.
|
|
163
|
-
together-2.0.
|
|
164
|
-
together-2.0.
|
|
165
|
-
together-2.0.
|
|
166
|
-
together-2.0.
|
|
162
|
+
together-2.0.0a13.dist-info/METADATA,sha256=I61HjW1IsoROkaTO3yOCuer8UXQ8wqaEtZHUFfmE_ZA,20249
|
|
163
|
+
together-2.0.0a13.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
164
|
+
together-2.0.0a13.dist-info/entry_points.txt,sha256=4f4RAX89wQkx3AnfHXiGrKyg2fCPnwMd2UdPX48OczA,55
|
|
165
|
+
together-2.0.0a13.dist-info/licenses/LICENSE,sha256=oSs-kmJHhMue4vIIPIxQMvXou9PbxgNdIX-r_AwfO7c,11338
|
|
166
|
+
together-2.0.0a13.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|