together 1.2.3__py3-none-any.whl → 1.2.5__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/__init__.py CHANGED
@@ -16,6 +16,12 @@ from together import (
16
16
  )
17
17
  from together.version import VERSION
18
18
 
19
+ from together.legacy.complete import AsyncComplete, Complete, Completion
20
+ from together.legacy.embeddings import Embeddings
21
+ from together.legacy.files import Files
22
+ from together.legacy.finetune import Finetune
23
+ from together.legacy.images import Image
24
+ from together.legacy.models import Models
19
25
 
20
26
  version = VERSION
21
27
 
@@ -37,12 +43,6 @@ from together.client import AsyncClient, AsyncTogether, Client, Together
37
43
  api_key: str | None = None # To be deprecated in the next major release
38
44
 
39
45
  # Legacy functions
40
- from together.legacy.complete import AsyncComplete, Complete, Completion
41
- from together.legacy.embeddings import Embeddings
42
- from together.legacy.files import Files
43
- from together.legacy.finetune import Finetune
44
- from together.legacy.images import Image
45
- from together.legacy.models import Models
46
46
 
47
47
 
48
48
  __all__ = [
@@ -61,4 +61,12 @@ __all__ = [
61
61
  "together_response",
62
62
  "client",
63
63
  "utils",
64
+ "Complete",
65
+ "AsyncComplete",
66
+ "Completion",
67
+ "Embeddings",
68
+ "Files",
69
+ "Finetune",
70
+ "Image",
71
+ "Models",
64
72
  ]
@@ -1 +0,0 @@
1
- from together.abstract.api_requestor import APIRequestor
@@ -121,7 +121,7 @@ class APIRequestor:
121
121
  See also
122
122
  https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After#syntax
123
123
  """
124
- if response_headers is None:
124
+ if not response_headers:
125
125
  return None
126
126
 
127
127
  # First, try the non-standard `retry-after-ms` header for milliseconds,
@@ -485,6 +485,8 @@ class APIRequestor:
485
485
  _thread_context.session.close()
486
486
  _thread_context.session = _make_session(MAX_CONNECTION_RETRIES)
487
487
  _thread_context.session_create_time = time.time()
488
+
489
+ result = None
488
490
  try:
489
491
  result = _thread_context.session.request(
490
492
  options.method,
@@ -500,11 +502,13 @@ class APIRequestor:
500
502
  except requests.exceptions.Timeout as e:
501
503
  utils.log_debug("Encountered requests.exceptions.Timeout")
502
504
 
505
+ result_headers = dict(result.headers) if result is not None else {}
506
+
503
507
  if remaining_retries > 0:
504
508
  return self._retry_request(
505
509
  options,
506
510
  remaining_retries=remaining_retries,
507
- response_headers=dict(result.headers),
511
+ response_headers=result_headers,
508
512
  stream=stream,
509
513
  request_timeout=request_timeout,
510
514
  )
@@ -513,11 +517,13 @@ class APIRequestor:
513
517
  except requests.exceptions.RequestException as e:
514
518
  utils.log_debug("Encountered requests.exceptions.RequestException")
515
519
 
520
+ result_headers = dict(result.headers) if result is not None else {}
521
+
516
522
  if remaining_retries > 0:
517
523
  return self._retry_request(
518
524
  options,
519
525
  remaining_retries=remaining_retries,
520
- response_headers=dict(result.headers),
526
+ response_headers=result_headers,
521
527
  stream=stream,
522
528
  request_timeout=request_timeout,
523
529
  )
@@ -527,26 +533,32 @@ class APIRequestor:
527
533
  ) from e
528
534
 
529
535
  # retry on 5XX error or rate-limit
530
- if 500 <= result.status_code < 600 or result.status_code == 429:
531
- utils.log_debug(
532
- f"Encountered requests.exceptions.HTTPError. Error code: {result.status_code}"
533
- )
534
-
535
- if remaining_retries > 0:
536
- return self._retry_request(
537
- options,
538
- remaining_retries=remaining_retries,
539
- response_headers=dict(result.headers),
540
- stream=stream,
541
- request_timeout=request_timeout,
536
+ if result is not None:
537
+ if 500 <= result.status_code < 600 or result.status_code == 429:
538
+ utils.log_debug(
539
+ f"Encountered requests.exceptions.HTTPError. Error code: {result.status_code}"
542
540
  )
543
541
 
542
+ result_headers = dict(result.headers) if result is not None else {}
543
+
544
+ if remaining_retries > 0:
545
+ return self._retry_request(
546
+ options,
547
+ remaining_retries=remaining_retries,
548
+ response_headers=result_headers,
549
+ stream=stream,
550
+ request_timeout=request_timeout,
551
+ )
552
+
553
+ status_code = result.status_code if result is not None else 0
554
+ result_headers = dict(result.headers) if result is not None else {}
555
+
544
556
  utils.log_debug(
545
557
  "Together API response",
546
558
  path=abs_url,
547
- response_code=result.status_code,
548
- processing_ms=result.headers.get("x-total-time"),
549
- request_id=result.headers.get("CF-RAY"),
559
+ response_code=status_code,
560
+ processing_ms=result_headers.get("x-total-time"),
561
+ request_id=result_headers.get("CF-RAY"),
550
562
  )
551
563
 
552
564
  return result # type: ignore
together/cli/api/chat.py CHANGED
@@ -238,7 +238,7 @@ def chat(
238
238
  assert chunk.choices
239
239
 
240
240
  if raw:
241
- click.echo(f"{json.dumps(chunk.model_dump())}")
241
+ click.echo(f"{json.dumps(chunk.model_dump(exclude_none=True))}")
242
242
  continue
243
243
 
244
244
  should_print_header = len(chunk.choices) > 1
@@ -261,7 +261,9 @@ def chat(
261
261
  assert isinstance(response.choices, list)
262
262
 
263
263
  if raw:
264
- click.echo(f"{json.dumps(response.model_dump(), indent=4)}")
264
+ click.echo(
265
+ f"{json.dumps(response.model_dump(exclude_none=True), indent=4)}"
266
+ )
265
267
  return
266
268
 
267
269
  should_print_header = len(response.choices) > 1
@@ -80,7 +80,7 @@ def completions(
80
80
  assert chunk.choices
81
81
 
82
82
  if raw:
83
- click.echo(f"{json.dumps(chunk.model_dump())}")
83
+ click.echo(f"{json.dumps(chunk.model_dump(exclude_none=True))}")
84
84
  continue
85
85
 
86
86
  should_print_header = len(chunk.choices) > 1
@@ -104,7 +104,9 @@ def completions(
104
104
  assert isinstance(response.choices, list)
105
105
 
106
106
  if raw:
107
- click.echo(f"{json.dumps(response.model_dump(), indent=4)}")
107
+ click.echo(
108
+ f"{json.dumps(response.model_dump(exclude_none=True), indent=4)}"
109
+ )
108
110
  return
109
111
 
110
112
  should_print_header = len(response.choices) > 1
together/cli/api/files.py CHANGED
@@ -44,7 +44,7 @@ def upload(ctx: click.Context, file: pathlib.Path, purpose: str, check: bool) ->
44
44
 
45
45
  response = client.files.upload(file=file, purpose=purpose, check=check)
46
46
 
47
- click.echo(json.dumps(response.model_dump(), indent=4))
47
+ click.echo(json.dumps(response.model_dump(exclude_none=True), indent=4))
48
48
 
49
49
 
50
50
  @files.command()
@@ -83,7 +83,7 @@ def retrieve(ctx: click.Context, id: str) -> None:
83
83
 
84
84
  response = client.files.retrieve(id=id)
85
85
 
86
- click.echo(json.dumps(response.model_dump(), indent=4))
86
+ click.echo(json.dumps(response.model_dump(exclude_none=True), indent=4))
87
87
 
88
88
 
89
89
  @files.command()
@@ -97,7 +97,7 @@ def retrieve_content(ctx: click.Context, id: str, output: str) -> None:
97
97
 
98
98
  response = client.files.retrieve_content(id=id, output=output)
99
99
 
100
- click.echo(json.dumps(response.model_dump(), indent=4))
100
+ click.echo(json.dumps(response.model_dump(exclude_none=True), indent=4))
101
101
 
102
102
 
103
103
  @files.command()
@@ -110,7 +110,7 @@ def delete(ctx: click.Context, id: str) -> None:
110
110
 
111
111
  response = client.files.delete(id=id)
112
112
 
113
- click.echo(json.dumps(response.model_dump(), indent=4))
113
+ click.echo(json.dumps(response.model_dump(exclude_none=True), indent=4))
114
114
 
115
115
 
116
116
  @files.command()
@@ -97,7 +97,7 @@ def create(
97
97
  wandb_api_key=wandb_api_key,
98
98
  )
99
99
 
100
- click.echo(json.dumps(response.model_dump(), indent=4))
100
+ click.echo(json.dumps(response.model_dump(exclude_none=True), indent=4))
101
101
 
102
102
 
103
103
  @fine_tuning.command()
@@ -142,7 +142,7 @@ def retrieve(ctx: click.Context, fine_tune_id: str) -> None:
142
142
  # remove events from response for cleaner output
143
143
  response.events = None
144
144
 
145
- click.echo(json.dumps(response.model_dump(), indent=4))
145
+ click.echo(json.dumps(response.model_dump(exclude_none=True), indent=4))
146
146
 
147
147
 
148
148
  @fine_tuning.command()
@@ -164,7 +164,7 @@ def cancel(ctx: click.Context, fine_tune_id: str, quiet: bool = False) -> None:
164
164
  return
165
165
  response = client.fine_tuning.cancel(fine_tune_id)
166
166
 
167
- click.echo(json.dumps(response.model_dump(), indent=4))
167
+ click.echo(json.dumps(response.model_dump(exclude_none=True), indent=4))
168
168
 
169
169
 
170
170
  @fine_tuning.command()
@@ -223,4 +223,4 @@ def download(
223
223
  fine_tune_id, output=output_dir, checkpoint_step=checkpoint_step
224
224
  )
225
225
 
226
- click.echo(json.dumps(response.model_dump(), indent=4))
226
+ click.echo(json.dumps(response.model_dump(exclude_none=True), indent=4))
together/error.py CHANGED
@@ -19,7 +19,7 @@ class TogetherException(Exception):
19
19
  http_status: int | None = None,
20
20
  ) -> None:
21
21
  _message = (
22
- json.dumps(message.model_dump())
22
+ json.dumps(message.model_dump(exclude_none=True))
23
23
  if isinstance(message, TogetherErrorResponse)
24
24
  else message
25
25
  )
@@ -25,9 +25,11 @@ class Complete:
25
25
 
26
26
  client = together.Together(api_key=api_key)
27
27
 
28
- return client.completions.create(
29
- prompt=prompt, stream=False, **kwargs
30
- ).model_dump() # type: ignore
28
+ result = client.completions.create(prompt=prompt, stream=False, **kwargs)
29
+
30
+ assert isinstance(result, CompletionResponse)
31
+
32
+ return result.model_dump(exclude_none=True)
31
33
 
32
34
  @classmethod
33
35
  @deprecated # type: ignore
@@ -46,7 +48,7 @@ class Complete:
46
48
  client = together.Together(api_key=api_key)
47
49
 
48
50
  return (
49
- token.model_dump() # type: ignore
51
+ token.model_dump(exclude_none=True) # type: ignore
50
52
  for token in client.completions.create(prompt=prompt, stream=True, **kwargs)
51
53
  )
52
54
 
@@ -22,4 +22,6 @@ class Embeddings:
22
22
 
23
23
  client = together.Together(api_key=api_key)
24
24
 
25
- return client.embeddings.create(input=input, **kwargs).model_dump()
25
+ return client.embeddings.create(input=input, **kwargs).model_dump(
26
+ exclude_none=True
27
+ )
together/legacy/files.py CHANGED
@@ -24,7 +24,7 @@ class Files:
24
24
 
25
25
  client = together.Together(api_key=api_key)
26
26
 
27
- return client.files.list().model_dump()
27
+ return client.files.list().model_dump(exclude_none=True)
28
28
 
29
29
  @classmethod
30
30
  def check(self, file: str) -> Dict[str, object]:
@@ -54,7 +54,9 @@ class Files:
54
54
  client = together.Together(api_key=api_key)
55
55
 
56
56
  # disabling the check, because it was run previously
57
- response = client.files.upload(file=file, check=False).model_dump()
57
+ response = client.files.upload(file=file, check=False).model_dump(
58
+ exclude_none=True
59
+ )
58
60
 
59
61
  if check:
60
62
  response["report_dict"] = report_dict
@@ -76,7 +78,7 @@ class Files:
76
78
 
77
79
  client = together.Together(api_key=api_key)
78
80
 
79
- return client.files.delete(id=file_id).model_dump()
81
+ return client.files.delete(id=file_id).model_dump(exclude_none=True)
80
82
 
81
83
  @classmethod
82
84
  @deprecated # type: ignore
@@ -93,7 +95,7 @@ class Files:
93
95
 
94
96
  client = together.Together(api_key=api_key)
95
97
 
96
- return client.files.retrieve(id=file_id).model_dump()
98
+ return client.files.retrieve(id=file_id).model_dump(exclude_none=True)
97
99
 
98
100
  @classmethod
99
101
  @deprecated # type: ignore
@@ -111,7 +113,9 @@ class Files:
111
113
 
112
114
  client = together.Together(api_key=api_key)
113
115
 
114
- return client.files.retrieve_content(id=file_id, output=output).model_dump()
116
+ return client.files.retrieve_content(id=file_id, output=output).dict(
117
+ exclude_none=True
118
+ )
115
119
 
116
120
  @classmethod
117
121
  @deprecated # type: ignore
@@ -47,7 +47,7 @@ class Finetune:
47
47
  learning_rate=learning_rate,
48
48
  suffix=suffix,
49
49
  wandb_api_key=wandb_api_key,
50
- ).model_dump()
50
+ ).model_dump(exclude_none=True)
51
51
 
52
52
  @classmethod
53
53
  @deprecated # type: ignore
@@ -63,7 +63,7 @@ class Finetune:
63
63
 
64
64
  client = together.Together(api_key=api_key)
65
65
 
66
- return client.fine_tuning.list().model_dump()
66
+ return client.fine_tuning.list().model_dump(exclude_none=True)
67
67
 
68
68
  @classmethod
69
69
  @deprecated # type: ignore
@@ -80,7 +80,9 @@ class Finetune:
80
80
 
81
81
  client = together.Together(api_key=api_key)
82
82
 
83
- return client.fine_tuning.retrieve(id=fine_tune_id).model_dump()
83
+ return client.fine_tuning.retrieve(id=fine_tune_id).model_dump(
84
+ exclude_none=True
85
+ )
84
86
 
85
87
  @classmethod
86
88
  @deprecated # type: ignore
@@ -97,7 +99,7 @@ class Finetune:
97
99
 
98
100
  client = together.Together(api_key=api_key)
99
101
 
100
- return client.fine_tuning.cancel(id=fine_tune_id).model_dump()
102
+ return client.fine_tuning.cancel(id=fine_tune_id).model_dump(exclude_none=True)
101
103
 
102
104
  @classmethod
103
105
  @deprecated # type: ignore
@@ -114,7 +116,9 @@ class Finetune:
114
116
 
115
117
  client = together.Together(api_key=api_key)
116
118
 
117
- return client.fine_tuning.list_events(id=fine_tune_id).model_dump()
119
+ return client.fine_tuning.list_events(id=fine_tune_id).model_dump(
120
+ exclude_none=True
121
+ )
118
122
 
119
123
  @classmethod
120
124
  @deprecated # type: ignore
@@ -170,4 +174,4 @@ class Finetune:
170
174
 
171
175
  return client.fine_tuning.download(
172
176
  id=fine_tune_id, output=output, checkpoint_step=step
173
- ).model_dump()
177
+ ).model_dump(exclude_none=True)
together/legacy/images.py CHANGED
@@ -22,4 +22,6 @@ class Image:
22
22
 
23
23
  client = together.Together(api_key=api_key)
24
24
 
25
- return client.images.generate(prompt=prompt, **kwargs).model_dump()
25
+ return client.images.generate(prompt=prompt, **kwargs).model_dump(
26
+ exclude_none=True
27
+ )
together/legacy/models.py CHANGED
@@ -20,7 +20,7 @@ class Models:
20
20
 
21
21
  client = together.Together(api_key=api_key)
22
22
 
23
- return [item.model_dump() for item in client.models.list()]
23
+ return [item.model_dump(exclude_none=True) for item in client.models.list()]
24
24
 
25
25
  @classmethod
26
26
  @deprecated # type: ignore
@@ -41,4 +41,4 @@ class Models:
41
41
 
42
42
  for item in model_list:
43
43
  if item.id == model:
44
- return item.model_dump()
44
+ return item.model_dump(exclude_none=True)
@@ -131,7 +131,7 @@ class ChatCompletions:
131
131
  response_format=response_format,
132
132
  tools=tools,
133
133
  tool_choice=tool_choice,
134
- ).model_dump()
134
+ ).model_dump(exclude_none=True)
135
135
 
136
136
  response, _, _ = requestor.request(
137
137
  options=TogetherRequest(
@@ -268,7 +268,7 @@ class AsyncChatCompletions:
268
268
  response_format=response_format,
269
269
  tools=tools,
270
270
  tool_choice=tool_choice,
271
- ).model_dump()
271
+ ).model_dump(exclude_none=True)
272
272
 
273
273
  response, _, _ = await requestor.arequest(
274
274
  options=TogetherRequest(
@@ -113,7 +113,7 @@ class Completions:
113
113
  echo=echo,
114
114
  n=n,
115
115
  safety_model=safety_model,
116
- ).model_dump()
116
+ ).model_dump(exclude_none=True)
117
117
 
118
118
  response, _, _ = requestor.request(
119
119
  options=TogetherRequest(
@@ -232,7 +232,7 @@ class AsyncCompletions:
232
232
  echo=echo,
233
233
  n=n,
234
234
  safety_model=safety_model,
235
- ).model_dump()
235
+ ).model_dump(exclude_none=True)
236
236
 
237
237
  response, _, _ = await requestor.arequest(
238
238
  options=TogetherRequest(
@@ -40,7 +40,7 @@ class Embeddings:
40
40
  parameter_payload = EmbeddingRequest(
41
41
  input=input,
42
42
  model=model,
43
- ).model_dump()
43
+ ).model_dump(exclude_none=True)
44
44
 
45
45
  response, _, _ = requestor.request(
46
46
  options=TogetherRequest(
@@ -84,7 +84,7 @@ class AsyncEmbeddings:
84
84
  parameter_payload = EmbeddingRequest(
85
85
  input=input,
86
86
  model=model,
87
- ).model_dump()
87
+ ).model_dump(exclude_none=True)
88
88
 
89
89
  response, _, _ = await requestor.arequest(
90
90
  options=TogetherRequest(
@@ -90,7 +90,7 @@ class FineTuning:
90
90
  training_type=training_type,
91
91
  suffix=suffix,
92
92
  wandb_key=wandb_api_key,
93
- ).model_dump()
93
+ ).model_dump(exclude_none=True)
94
94
 
95
95
  response, _, _ = requestor.request(
96
96
  options=TogetherRequest(
@@ -304,7 +304,7 @@ class AsyncFineTuning:
304
304
  learning_rate=learning_rate,
305
305
  suffix=suffix,
306
306
  wandb_key=wandb_api_key,
307
- ).model_dump()
307
+ ).model_dump(exclude_none=True)
308
308
 
309
309
  response, _, _ = await requestor.arequest(
310
310
  options=TogetherRequest(
@@ -67,7 +67,7 @@ class Images:
67
67
  height=height,
68
68
  width=width,
69
69
  negative_prompt=negative_prompt,
70
- ).model_dump()
70
+ ).model_dump(exclude_none=True)
71
71
 
72
72
  response, _, _ = requestor.request(
73
73
  options=TogetherRequest(
@@ -140,7 +140,7 @@ class AsyncImages:
140
140
  height=height,
141
141
  width=width,
142
142
  negative_prompt=negative_prompt,
143
- ).model_dump()
143
+ ).model_dump(exclude_none=True)
144
144
 
145
145
  response, _, _ = await requestor.arequest(
146
146
  options=TogetherRequest(
@@ -4,7 +4,7 @@ import warnings
4
4
  from enum import Enum
5
5
  from typing import Any, Dict, List
6
6
 
7
- from pydantic import Field, model_validator
7
+ from pydantic import model_validator
8
8
  from typing_extensions import Self
9
9
 
10
10
  from together.types.abstract import BaseModel
@@ -48,7 +48,10 @@ class ChatCompletionMessage(BaseModel):
48
48
 
49
49
  class ResponseFormat(BaseModel):
50
50
  type: ResponseFormatType
51
- schema_: Dict[str, Any] | None = Field(None, alias="schema")
51
+ schema_: Dict[str, Any] | None = None
52
+
53
+ def to_dict(self) -> Dict[str, Any]:
54
+ return {"schema": self.schema_, "type": self.type}
52
55
 
53
56
 
54
57
  class FunctionTool(BaseModel):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: together
3
- Version: 1.2.3
3
+ Version: 1.2.5
4
4
  Summary: Python client for Together's Cloud Platform!
5
5
  Home-page: https://github.com/togethercomputer/together-python
6
6
  License: Apache-2.0
@@ -1,40 +1,40 @@
1
- together/__init__.py,sha256=Hf0ToYnvjYMFaXZrijEnBlvfY29_Dp2cow4tzAS1Z-w,1401
2
- together/abstract/__init__.py,sha256=dYIzis9Y50vclQEIF0z6vi_bIFn6Lba51ozr7q6w8gI,57
3
- together/abstract/api_requestor.py,sha256=8fuAJHIZFLfzItaeSqRgsqSD6KnAvF1J_SrwKkfkHTg,25103
1
+ together/__init__.py,sha256=B8T7ybZ7D6jJNRTuFDVjOFlImCNag8tNZXpZdXz7xNM,1530
2
+ together/abstract/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ together/abstract/api_requestor.py,sha256=HxVOcaGBLHzNEDBxYx7XZ2OGBBt1z_wMBSnsIcnS6vA,25570
4
4
  together/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  together/cli/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- together/cli/api/chat.py,sha256=qmDcYohGe1ODfvYEDN6Z2eZO3qODgmeUTll8P5qoKYQ,9170
7
- together/cli/api/completions.py,sha256=v6KvGsXnPCdSM7WIu_QmKXOA4iVjW93k3dLwfIBkxPQ,4199
8
- together/cli/api/files.py,sha256=hOiN1ftwbSAs3gcVqwmPymhmzDYiIUrFWXFHVcWWom8,3329
9
- together/cli/api/finetune.py,sha256=xg9yb1GEvtxj7RR6g2A4Mn9gM6M9Oeb0Tp-8EF8DSc0,7089
6
+ together/cli/api/chat.py,sha256=2PHRb-9T-lUEKhUJFtc7SxJv3shCVx40gq_8pzfsewM,9234
7
+ together/cli/api/completions.py,sha256=l-Zw5t7hojL3w8xd_mitS2NRB72i5Z0xwkzH0rT5XMc,4263
8
+ together/cli/api/files.py,sha256=QLYEXRkY8J2Gg1SbTCtzGfoTMvosoeACNK83L_oLubs,3397
9
+ together/cli/api/finetune.py,sha256=hRIZj-p7vTsvl35pCBRTFpumzEVQbK1CMpVruW2bxJM,7157
10
10
  together/cli/api/images.py,sha256=01dFYa2sK1HqUwVCD9FlwcjqkYWLoNxFZkzok13EriE,2363
11
11
  together/cli/api/models.py,sha256=xWEzu8ZpxM_Pz9KEjRPRVuv_v22RayYZ4QcgiezT5tE,1126
12
12
  together/cli/cli.py,sha256=RC0tgapkSOFjsRPg8p-8dx9D2LDzm8YmVCHUjk_aVyQ,1977
13
13
  together/client.py,sha256=7QT5lwn7-QGf0vtgbhslQujm4986CgfE2spyMYP4JyU,4774
14
14
  together/constants.py,sha256=WHe6JA9TliwgErkCnovWPS9w9xXfA3X5PtKJv_y2JxQ,908
15
- together/error.py,sha256=IWomy3KpDyuWS7uK4US2a4CkG4HC3oQEGQvVtul4nM8,5402
15
+ together/error.py,sha256=emjhTSsLwiZvW0v1EmYemjacCMtcFIKAXWWK_2IdP18,5419
16
16
  together/filemanager.py,sha256=QHhBn73oVFdgUpSYXYLmJzHJ9c5wYEMJC0ur6ZgDeYo,11269
17
17
  together/legacy/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
18
  together/legacy/base.py,sha256=ehrX1SCfRbK5OA83wL1q7-tfF-yuZOUxzjxYfFtdvvQ,727
19
- together/legacy/complete.py,sha256=8itEMlyuora2EIO-b-tvjvpHfKhxckDEiqaN-z6ccQs,2343
20
- together/legacy/embeddings.py,sha256=Sm4XNVBm00JUNQT65hlZE5tIwsKar2PdmK0_lZ4dw_4,591
21
- together/legacy/files.py,sha256=TFIJZvHlAY-SxQ4PJuCr-A4uRPL2znDhsbSTaTklCD0,3959
22
- together/legacy/finetune.py,sha256=Uujbmo_wdCko84mZbDTXMkNBySgMUvVXtULb0w96rDI,4917
23
- together/legacy/images.py,sha256=An5dmwU6Mo8mU-CJmI51J9EhOnYwcG9YXF8UgDcIm8E,582
24
- together/legacy/models.py,sha256=EEyRNw7AuMoKNXm1nWfT-k2wsAFq213WoyDVGRjwJWs,1053
19
+ together/legacy/complete.py,sha256=2W4OoXc9cX6G2ZfoQJRg8RUgisYd42x8Y9U5bL0xL70,2419
20
+ together/legacy/embeddings.py,sha256=SSQJlgMlCRgXomlhpOTJktLqZEVPncsl1cMN67Jxeeg,630
21
+ together/legacy/files.py,sha256=qmAqMiNTPWb6WvLV5Tsv6kxGRfQ31q7OkHZNFwkw8v0,4082
22
+ together/legacy/finetune.py,sha256=k-lERbZLEZlW1QQ9A9zhhwl5KIPjf_jT0R0LSiLbD2Y,5063
23
+ together/legacy/images.py,sha256=fWp5xdmRBENgy9UClG43gEO8XMRdh6c-Psj-VE-Kz_E,621
24
+ together/legacy/models.py,sha256=85ZN9Ids_FjdYNDRv5k7sgrtVWPKPHqkDplORtVUGHg,1087
25
25
  together/resources/__init__.py,sha256=lqALaYtprhTzvHFP5xFuEjm-ooDJtCioDKEbboXaCE4,701
26
26
  together/resources/chat/__init__.py,sha256=RsTptdP8MeGjcdIjze896-J27cRvCbUoMft0X2BVlQ8,617
27
- together/resources/chat/completions.py,sha256=QGrg0fGsn16k6jpxbQGoIBRivHWgEimPWAEVdKSAVGk,14084
28
- together/resources/completions.py,sha256=5s-jly2vbpI1rWhFwVijCmCOyhEZuDuwJblrm3HD0Gs,11353
29
- together/resources/embeddings.py,sha256=yRG0JaF4u_MEynQ4TBgCOVf9bKSvGI1fRaQx3CHUiB0,2546
27
+ together/resources/chat/completions.py,sha256=BFeApiCRSTzy3FXiRudWVhN-dOodC4MMYoM3gdpfURU,14118
28
+ together/resources/completions.py,sha256=ouv9_jCsVT-vz49i77T053v35LL9iWhUXT7awa_gH5o,11387
29
+ together/resources/embeddings.py,sha256=AddhcJTS7cjhCpW6v8B2mOLoHugeo3AxL9AGrBEKe8o,2580
30
30
  together/resources/files.py,sha256=bnPbaF25e4InBRPvHwXHXT-oSX1Z1sZRsnQW5wq82U4,4990
31
- together/resources/finetune.py,sha256=-MU25J2gHSFQnBIPg4XDle5cgfrkOnQtK9_T_hJqRy8,13471
32
- together/resources/images.py,sha256=gFzXy7gLzr20KsXJXHEsOZtJJpuR6pH1d8XHCd6Dl9E,4775
31
+ together/resources/finetune.py,sha256=MUHOpvQLIa0tAy7XKhfdyaugZ4AhjSpeLCreRAQSnJU,13505
32
+ together/resources/images.py,sha256=ALTxJyrUHkGnPzfm7R_nySF0fhUwPjrcyg1j3hzZ_WY,4809
33
33
  together/resources/models.py,sha256=2dtHhXAqTDOOpwSbYLzWcKTC0-m2Szlb7LDYvp7Jr4w,1786
34
34
  together/together_response.py,sha256=MhczUCPem93cjX-A1TOAUrRj3sO-o3SLcEcTsZgVzQI,1319
35
35
  together/types/__init__.py,sha256=QeDcuLgW1lowGijdwEZXCibaBIb9k0YKG581TlXwzd4,1562
36
36
  together/types/abstract.py,sha256=1lFQI_3WjsR_t1128AeKW0aTk6EiM6Gh1J3ZuyLLPao,642
37
- together/types/chat_completions.py,sha256=VxuvcHM9IQVWfD1qKu6gDWdrV5UainjkV3pGm_4Oiyo,4335
37
+ together/types/chat_completions.py,sha256=wy_2E2moA2Aw1RVRXG7bLcHqkSULv-MlJZygajbQN_8,4406
38
38
  together/types/common.py,sha256=4ZeIgqGioqhIC-nNxY90czNPp-kAqboMulw6-1z6ShM,1511
39
39
  together/types/completions.py,sha256=yydloTQePGaY97Lx-kbkvgCqBFhHFl7jU5s7uf9Ncg0,2901
40
40
  together/types/embeddings.py,sha256=J7grkYYn7xhqeKaBO2T-8XQRtHhkzYzymovtGdIUK5A,751
@@ -49,8 +49,8 @@ together/utils/api_helpers.py,sha256=RSF7SRhbjHzroMOSWAXscflByM1r1ta_1SpxkAT22iE
49
49
  together/utils/files.py,sha256=gMLthqfP5hKxVAerHMdy7gLXzdfY6lyOXdpW24Y4X3I,7165
50
50
  together/utils/tools.py,sha256=3-lXWP3cBCzOVSZg9tr5zOT1jaVeKAKVWxO2fcXZTh8,1788
51
51
  together/version.py,sha256=p03ivHyE0SyWU4jAnRTBi_sOwywVWoZPU4g2gzRgG-Y,126
52
- together-1.2.3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
53
- together-1.2.3.dist-info/METADATA,sha256=BdqQEU6vpCarSDazFhrqWoaZqBkz8tfTN7iH8HPjZH4,11812
54
- together-1.2.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
55
- together-1.2.3.dist-info/entry_points.txt,sha256=G-b5NKW6lUUf1V1fH8IPTBb7jXnK7lhbX9H1zTEJXPs,50
56
- together-1.2.3.dist-info/RECORD,,
52
+ together-1.2.5.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
53
+ together-1.2.5.dist-info/METADATA,sha256=emk1VSAZp5zDmUNlssFoQxy5sZOmo5eymWXZifzh9rg,11812
54
+ together-1.2.5.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
55
+ together-1.2.5.dist-info/entry_points.txt,sha256=G-b5NKW6lUUf1V1fH8IPTBb7jXnK7lhbX9H1zTEJXPs,50
56
+ together-1.2.5.dist-info/RECORD,,