together 1.2.11__tar.gz → 1.2.12__tar.gz

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.
Files changed (57) hide show
  1. {together-1.2.11 → together-1.2.12}/PKG-INFO +1 -1
  2. {together-1.2.11 → together-1.2.12}/pyproject.toml +1 -1
  3. {together-1.2.11 → together-1.2.12}/src/together/resources/chat/completions.py +6 -0
  4. {together-1.2.11 → together-1.2.12}/src/together/resources/completions.py +6 -0
  5. {together-1.2.11 → together-1.2.12}/src/together/types/chat_completions.py +3 -0
  6. {together-1.2.11 → together-1.2.12}/src/together/types/completions.py +4 -1
  7. {together-1.2.11 → together-1.2.12}/LICENSE +0 -0
  8. {together-1.2.11 → together-1.2.12}/README.md +0 -0
  9. {together-1.2.11 → together-1.2.12}/src/together/__init__.py +0 -0
  10. {together-1.2.11 → together-1.2.12}/src/together/abstract/__init__.py +0 -0
  11. {together-1.2.11 → together-1.2.12}/src/together/abstract/api_requestor.py +0 -0
  12. {together-1.2.11 → together-1.2.12}/src/together/cli/__init__.py +0 -0
  13. {together-1.2.11 → together-1.2.12}/src/together/cli/api/__init__.py +0 -0
  14. {together-1.2.11 → together-1.2.12}/src/together/cli/api/chat.py +0 -0
  15. {together-1.2.11 → together-1.2.12}/src/together/cli/api/completions.py +0 -0
  16. {together-1.2.11 → together-1.2.12}/src/together/cli/api/files.py +0 -0
  17. {together-1.2.11 → together-1.2.12}/src/together/cli/api/finetune.py +0 -0
  18. {together-1.2.11 → together-1.2.12}/src/together/cli/api/images.py +0 -0
  19. {together-1.2.11 → together-1.2.12}/src/together/cli/api/models.py +0 -0
  20. {together-1.2.11 → together-1.2.12}/src/together/cli/cli.py +0 -0
  21. {together-1.2.11 → together-1.2.12}/src/together/client.py +0 -0
  22. {together-1.2.11 → together-1.2.12}/src/together/constants.py +0 -0
  23. {together-1.2.11 → together-1.2.12}/src/together/error.py +0 -0
  24. {together-1.2.11 → together-1.2.12}/src/together/filemanager.py +0 -0
  25. {together-1.2.11 → together-1.2.12}/src/together/legacy/__init__.py +0 -0
  26. {together-1.2.11 → together-1.2.12}/src/together/legacy/base.py +0 -0
  27. {together-1.2.11 → together-1.2.12}/src/together/legacy/complete.py +0 -0
  28. {together-1.2.11 → together-1.2.12}/src/together/legacy/embeddings.py +0 -0
  29. {together-1.2.11 → together-1.2.12}/src/together/legacy/files.py +0 -0
  30. {together-1.2.11 → together-1.2.12}/src/together/legacy/finetune.py +0 -0
  31. {together-1.2.11 → together-1.2.12}/src/together/legacy/images.py +0 -0
  32. {together-1.2.11 → together-1.2.12}/src/together/legacy/models.py +0 -0
  33. {together-1.2.11 → together-1.2.12}/src/together/resources/__init__.py +0 -0
  34. {together-1.2.11 → together-1.2.12}/src/together/resources/chat/__init__.py +0 -0
  35. {together-1.2.11 → together-1.2.12}/src/together/resources/embeddings.py +0 -0
  36. {together-1.2.11 → together-1.2.12}/src/together/resources/files.py +0 -0
  37. {together-1.2.11 → together-1.2.12}/src/together/resources/finetune.py +0 -0
  38. {together-1.2.11 → together-1.2.12}/src/together/resources/images.py +0 -0
  39. {together-1.2.11 → together-1.2.12}/src/together/resources/models.py +0 -0
  40. {together-1.2.11 → together-1.2.12}/src/together/resources/rerank.py +0 -0
  41. {together-1.2.11 → together-1.2.12}/src/together/together_response.py +0 -0
  42. {together-1.2.11 → together-1.2.12}/src/together/types/__init__.py +0 -0
  43. {together-1.2.11 → together-1.2.12}/src/together/types/abstract.py +0 -0
  44. {together-1.2.11 → together-1.2.12}/src/together/types/common.py +0 -0
  45. {together-1.2.11 → together-1.2.12}/src/together/types/embeddings.py +0 -0
  46. {together-1.2.11 → together-1.2.12}/src/together/types/error.py +0 -0
  47. {together-1.2.11 → together-1.2.12}/src/together/types/files.py +0 -0
  48. {together-1.2.11 → together-1.2.12}/src/together/types/finetune.py +0 -0
  49. {together-1.2.11 → together-1.2.12}/src/together/types/images.py +0 -0
  50. {together-1.2.11 → together-1.2.12}/src/together/types/models.py +0 -0
  51. {together-1.2.11 → together-1.2.12}/src/together/types/rerank.py +0 -0
  52. {together-1.2.11 → together-1.2.12}/src/together/utils/__init__.py +0 -0
  53. {together-1.2.11 → together-1.2.12}/src/together/utils/_log.py +0 -0
  54. {together-1.2.11 → together-1.2.12}/src/together/utils/api_helpers.py +0 -0
  55. {together-1.2.11 → together-1.2.12}/src/together/utils/files.py +0 -0
  56. {together-1.2.11 → together-1.2.12}/src/together/utils/tools.py +0 -0
  57. {together-1.2.11 → together-1.2.12}/src/together/version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: together
3
- Version: 1.2.11
3
+ Version: 1.2.12
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
@@ -12,7 +12,7 @@ build-backend = "poetry.masonry.api"
12
12
 
13
13
  [tool.poetry]
14
14
  name = "together"
15
- version = "1.2.11"
15
+ version = "1.2.12"
16
16
  authors = [
17
17
  "Together AI <support@together.ai>"
18
18
  ]
@@ -32,6 +32,7 @@ class ChatCompletions:
32
32
  frequency_penalty: float | None = None,
33
33
  min_p: float | None = None,
34
34
  logit_bias: Dict[str, float] | None = None,
35
+ seed: int | None = None,
35
36
  stream: bool = False,
36
37
  logprobs: int | None = None,
37
38
  echo: bool | None = None,
@@ -79,6 +80,7 @@ class ChatCompletions:
79
80
  logit_bias (Dict[str, float], optional): A dictionary of tokens and their bias values that modify the
80
81
  likelihood of specific tokens being sampled. Bias values must be in the range [-100, 100].
81
82
  Defaults to None.
83
+ seed (int, optional): A seed value to use for reproducibility.
82
84
  stream (bool, optional): Flag indicating whether to stream the generated completions.
83
85
  Defaults to False.
84
86
  logprobs (int, optional): Number of top-k logprobs to return
@@ -124,6 +126,7 @@ class ChatCompletions:
124
126
  frequency_penalty=frequency_penalty,
125
127
  min_p=min_p,
126
128
  logit_bias=logit_bias,
129
+ seed=seed,
127
130
  stream=stream,
128
131
  logprobs=logprobs,
129
132
  echo=echo,
@@ -171,6 +174,7 @@ class AsyncChatCompletions:
171
174
  frequency_penalty: float | None = None,
172
175
  min_p: float | None = None,
173
176
  logit_bias: Dict[str, float] | None = None,
177
+ seed: int | None = None,
174
178
  stream: bool = False,
175
179
  logprobs: int | None = None,
176
180
  echo: bool | None = None,
@@ -218,6 +222,7 @@ class AsyncChatCompletions:
218
222
  logit_bias (Dict[str, float], optional): A dictionary of tokens and their bias values that modify the
219
223
  likelihood of specific tokens being sampled. Bias values must be in the range [-100, 100].
220
224
  Defaults to None.
225
+ seed (int, optional): A seed value to use for reproducibility.
221
226
  stream (bool, optional): Flag indicating whether to stream the generated completions.
222
227
  Defaults to False.
223
228
  logprobs (int, optional): Number of top-k logprobs to return
@@ -263,6 +268,7 @@ class AsyncChatCompletions:
263
268
  frequency_penalty=frequency_penalty,
264
269
  min_p=min_p,
265
270
  logit_bias=logit_bias,
271
+ seed=seed,
266
272
  stream=stream,
267
273
  logprobs=logprobs,
268
274
  echo=echo,
@@ -32,6 +32,7 @@ class Completions:
32
32
  frequency_penalty: float | None = None,
33
33
  min_p: float | None = None,
34
34
  logit_bias: Dict[str, float] | None = None,
35
+ seed: int | None = None,
35
36
  stream: bool = False,
36
37
  logprobs: int | None = None,
37
38
  echo: bool | None = None,
@@ -75,6 +76,7 @@ class Completions:
75
76
  logit_bias (Dict[str, float], optional): A dictionary of tokens and their bias values that modify the
76
77
  likelihood of specific tokens being sampled. Bias values must be in the range [-100, 100].
77
78
  Defaults to None.
79
+ seed (int, optional): Seed value for reproducibility.
78
80
  stream (bool, optional): Flag indicating whether to stream the generated completions.
79
81
  Defaults to False.
80
82
  logprobs (int, optional): Number of top-k logprobs to return
@@ -107,6 +109,7 @@ class Completions:
107
109
  repetition_penalty=repetition_penalty,
108
110
  presence_penalty=presence_penalty,
109
111
  frequency_penalty=frequency_penalty,
112
+ seed=seed,
110
113
  min_p=min_p,
111
114
  logit_bias=logit_bias,
112
115
  stream=stream,
@@ -153,6 +156,7 @@ class AsyncCompletions:
153
156
  frequency_penalty: float | None = None,
154
157
  min_p: float | None = None,
155
158
  logit_bias: Dict[str, float] | None = None,
159
+ seed: int | None = None,
156
160
  stream: bool = False,
157
161
  logprobs: int | None = None,
158
162
  echo: bool | None = None,
@@ -196,6 +200,7 @@ class AsyncCompletions:
196
200
  logit_bias (Dict[str, float], optional): A dictionary of tokens and their bias values that modify the
197
201
  likelihood of specific tokens being sampled. Bias values must be in the range [-100, 100].
198
202
  Defaults to None.
203
+ seed (int, optional): Seed value for reproducibility.
199
204
  stream (bool, optional): Flag indicating whether to stream the generated completions.
200
205
  Defaults to False.
201
206
  logprobs (int, optional): Number of top-k logprobs to return
@@ -230,6 +235,7 @@ class AsyncCompletions:
230
235
  frequency_penalty=frequency_penalty,
231
236
  min_p=min_p,
232
237
  logit_bias=logit_bias,
238
+ seed=seed,
233
239
  stream=stream,
234
240
  logprobs=logprobs,
235
241
  echo=echo,
@@ -96,6 +96,7 @@ class ChatCompletionRequest(BaseModel):
96
96
  frequency_penalty: float | None = None
97
97
  min_p: float | None = None
98
98
  logit_bias: Dict[str, float] | None = None
99
+ seed: int | None = None
99
100
  # stream SSE token chunks
100
101
  stream: bool = False
101
102
  # return logprobs
@@ -126,6 +127,7 @@ class ChatCompletionRequest(BaseModel):
126
127
  class ChatCompletionChoicesData(BaseModel):
127
128
  index: int | None = None
128
129
  logprobs: LogprobsPart | None = None
130
+ seed: int | None = None
129
131
  finish_reason: FinishReason | None = None
130
132
  message: ChatCompletionMessage | None = None
131
133
 
@@ -150,6 +152,7 @@ class ChatCompletionResponse(BaseModel):
150
152
  class ChatCompletionChoicesChunk(BaseModel):
151
153
  index: int | None = None
152
154
  logprobs: float | None = None
155
+ seed: int | None = None
153
156
  finish_reason: FinishReason | None = None
154
157
  delta: DeltaContent | None = None
155
158
 
@@ -35,6 +35,7 @@ class CompletionRequest(BaseModel):
35
35
  frequency_penalty: float | None = None
36
36
  min_p: float | None = None
37
37
  logit_bias: Dict[str, float] | None = None
38
+ seed: int | None = None
38
39
  # stream SSE token chunks
39
40
  stream: bool = False
40
41
  # return logprobs
@@ -61,13 +62,15 @@ class CompletionRequest(BaseModel):
61
62
  class CompletionChoicesData(BaseModel):
62
63
  index: int
63
64
  logprobs: LogprobsPart | None = None
64
- finish_reason: FinishReason | None = None
65
+ seed: int | None = None
66
+ finish_reason: FinishReason
65
67
  text: str
66
68
 
67
69
 
68
70
  class CompletionChoicesChunk(BaseModel):
69
71
  index: int | None = None
70
72
  logprobs: float | None = None
73
+ seed: int | None = None
71
74
  finish_reason: FinishReason | None = None
72
75
  delta: DeltaContent | None = None
73
76
 
File without changes
File without changes