together 1.3.10__py3-none-any.whl → 1.3.12__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/types/common.py CHANGED
@@ -16,6 +16,7 @@ class FinishReason(str, Enum):
16
16
  EOS = "eos"
17
17
  ToolCalls = "tool_calls"
18
18
  Error = "error"
19
+ Null = ""
19
20
 
20
21
 
21
22
  class UsageData(BaseModel):
together/utils/files.py CHANGED
@@ -177,6 +177,14 @@ def _check_jsonl(file: Path) -> Dict[str, Any]:
177
177
  error_source="key_value",
178
178
  )
179
179
 
180
+ if len(json_line[message_column]) == 0:
181
+ raise InvalidFileFormatError(
182
+ message=f"Invalid format on line {idx + 1} of the input file. "
183
+ f"Expected a non-empty list of messages. Found empty list",
184
+ line_number=idx + 1,
185
+ error_source="key_value",
186
+ )
187
+
180
188
  for turn_id, turn in enumerate(json_line[message_column]):
181
189
  if not isinstance(turn, dict):
182
190
  raise InvalidFileFormatError(
@@ -1,8 +1,7 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: together
3
- Version: 1.3.10
3
+ Version: 1.3.12
4
4
  Summary: Python client for Together's Cloud Platform!
5
- Home-page: https://github.com/togethercomputer/together-python
6
5
  License: Apache-2.0
7
6
  Author: Together AI
8
7
  Author-email: support@together.ai
@@ -31,6 +30,7 @@ Requires-Dist: tabulate (>=0.9.0,<0.10.0)
31
30
  Requires-Dist: tqdm (>=4.66.2,<5.0.0)
32
31
  Requires-Dist: typer (>=0.9,<0.16)
33
32
  Project-URL: Bug Tracker, https://github.com/togethercomputer/together-python/issues
33
+ Project-URL: Homepage, https://github.com/togethercomputer/together-python
34
34
  Project-URL: Repository, https://github.com/togethercomputer/together-python
35
35
  Description-Content-Type: text/markdown
36
36
 
@@ -37,7 +37,7 @@ together/together_response.py,sha256=MhczUCPem93cjX-A1TOAUrRj3sO-o3SLcEcTsZgVzQI
37
37
  together/types/__init__.py,sha256=jEnnepzUeeYgCNTQIi4EWKaOEsZKYp0vEqzYmP8bK5o,1863
38
38
  together/types/abstract.py,sha256=1lFQI_3WjsR_t1128AeKW0aTk6EiM6Gh1J3ZuyLLPao,642
39
39
  together/types/chat_completions.py,sha256=tIHQzB1N1DsUl3WojsrfErqxVmcI_eweGVp_gbf6dp8,4914
40
- together/types/common.py,sha256=4ZeIgqGioqhIC-nNxY90czNPp-kAqboMulw6-1z6ShM,1511
40
+ together/types/common.py,sha256=kxZ-N9xtBsGYZBmbIWnZ0rfT3Pn8PFB7sAbp3iv96pw,1525
41
41
  together/types/completions.py,sha256=o3FR5ixsTUj-a3pmOUzbSQg-hESVhpqrC9UD__VCqr4,2971
42
42
  together/types/embeddings.py,sha256=J7grkYYn7xhqeKaBO2T-8XQRtHhkzYzymovtGdIUK5A,751
43
43
  together/types/error.py,sha256=OVlCs3cx_2WhZK4JzHT8SQyRIIqKOP1AZQ4y1PydjAE,370
@@ -49,11 +49,11 @@ together/types/rerank.py,sha256=qZfuXOn7MZ6ly8hpJ_MZ7OU_Bi1-cgYNSB20Wja8Qkk,1061
49
49
  together/utils/__init__.py,sha256=n1kmLiaExT9YOKT5ye--dC4tW2qcHeicKX0GR86U640,698
50
50
  together/utils/_log.py,sha256=5IYNI-jYzxyIS-pUvhb0vE_Muo3MA7GgBhsu66TKP2w,1951
51
51
  together/utils/api_helpers.py,sha256=RSF7SRhbjHzroMOSWAXscflByM1r1ta_1SpxkAT22iE,2407
52
- together/utils/files.py,sha256=EJaziXezArb4cKtNodqaOsNJT-FWb1qIfMmSCFqPPm8,13745
52
+ together/utils/files.py,sha256=4SxxrTYfVoWvsD0n7O73LVjexAxYCWvXUBgmzrJY5-s,14169
53
53
  together/utils/tools.py,sha256=3-lXWP3cBCzOVSZg9tr5zOT1jaVeKAKVWxO2fcXZTh8,1788
54
54
  together/version.py,sha256=p03ivHyE0SyWU4jAnRTBi_sOwywVWoZPU4g2gzRgG-Y,126
55
- together-1.3.10.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
56
- together-1.3.10.dist-info/METADATA,sha256=Qfmm3LBkP-NympbEteGajWU9YwZ2LAGXqVVYqIE4n2s,11830
57
- together-1.3.10.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
58
- together-1.3.10.dist-info/entry_points.txt,sha256=G-b5NKW6lUUf1V1fH8IPTBb7jXnK7lhbX9H1zTEJXPs,50
59
- together-1.3.10.dist-info/RECORD,,
55
+ together-1.3.12.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
56
+ together-1.3.12.dist-info/METADATA,sha256=Hnn_nsC0ti4KwyfL6j3eVfNuf3pW74f8v4bZSDXv0j4,11842
57
+ together-1.3.12.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
58
+ together-1.3.12.dist-info/entry_points.txt,sha256=G-b5NKW6lUUf1V1fH8IPTBb7jXnK7lhbX9H1zTEJXPs,50
59
+ together-1.3.12.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.9.1
2
+ Generator: poetry-core 2.0.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any