together 1.2.11__py3-none-any.whl → 1.2.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/resources/chat/completions.py +6 -0
- together/resources/completions.py +6 -0
- together/types/chat_completions.py +3 -0
- together/types/completions.py +4 -1
- {together-1.2.11.dist-info → together-1.2.12.dist-info}/METADATA +1 -1
- {together-1.2.11.dist-info → together-1.2.12.dist-info}/RECORD +9 -9
- {together-1.2.11.dist-info → together-1.2.12.dist-info}/LICENSE +0 -0
- {together-1.2.11.dist-info → together-1.2.12.dist-info}/WHEEL +0 -0
- {together-1.2.11.dist-info → together-1.2.12.dist-info}/entry_points.txt +0 -0
|
@@ -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
|
|
together/types/completions.py
CHANGED
|
@@ -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
|
-
|
|
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
|
|
|
@@ -24,8 +24,8 @@ together/legacy/images.py,sha256=bJJRs-6C7-NexPyaeyHiYlHOU51yls5-QAiqtO4xrZU,626
|
|
|
24
24
|
together/legacy/models.py,sha256=85ZN9Ids_FjdYNDRv5k7sgrtVWPKPHqkDplORtVUGHg,1087
|
|
25
25
|
together/resources/__init__.py,sha256=7BLdBCNUbgi5mz30EFfdkdIYiGfFCkiUbdNzMY1-igY,792
|
|
26
26
|
together/resources/chat/__init__.py,sha256=RsTptdP8MeGjcdIjze896-J27cRvCbUoMft0X2BVlQ8,617
|
|
27
|
-
together/resources/chat/completions.py,sha256=
|
|
28
|
-
together/resources/completions.py,sha256=
|
|
27
|
+
together/resources/chat/completions.py,sha256=kxQLILVAd-fUrx97oXPQWqXTsjYyCZy3dXf7bijpUEg,14470
|
|
28
|
+
together/resources/completions.py,sha256=5Wa-ZjPCxRcam6CDe7KgGYlTA7yJZMmd5TrRgGCL_ug,11726
|
|
29
29
|
together/resources/embeddings.py,sha256=PTvLb82yjG_-iQOyuhsilp77Fr7gZ0o6WD2KeRnKoxs,2675
|
|
30
30
|
together/resources/files.py,sha256=bnPbaF25e4InBRPvHwXHXT-oSX1Z1sZRsnQW5wq82U4,4990
|
|
31
31
|
together/resources/finetune.py,sha256=t8wOulAyNFKlHjHv_u4-PwdL-rR-klgEvDEfH-efdkQ,15970
|
|
@@ -35,9 +35,9 @@ together/resources/rerank.py,sha256=3Ju_aRSyZ1s_3zCSNZnSnEJErUVmt2xa3M8z1nvejMA,
|
|
|
35
35
|
together/together_response.py,sha256=MhczUCPem93cjX-A1TOAUrRj3sO-o3SLcEcTsZgVzQI,1319
|
|
36
36
|
together/types/__init__.py,sha256=ghMiyyR2UzY-Io9Ck3ocwmS6_XSO9VaYWwbLqPDSZfo,1681
|
|
37
37
|
together/types/abstract.py,sha256=1lFQI_3WjsR_t1128AeKW0aTk6EiM6Gh1J3ZuyLLPao,642
|
|
38
|
-
together/types/chat_completions.py,sha256=
|
|
38
|
+
together/types/chat_completions.py,sha256=StPaDxC-F6HOTmvKOYgp1rXP2wB_gQ6QEJxbOjedcWA,4490
|
|
39
39
|
together/types/common.py,sha256=4ZeIgqGioqhIC-nNxY90czNPp-kAqboMulw6-1z6ShM,1511
|
|
40
|
-
together/types/completions.py,sha256=
|
|
40
|
+
together/types/completions.py,sha256=o3FR5ixsTUj-a3pmOUzbSQg-hESVhpqrC9UD__VCqr4,2971
|
|
41
41
|
together/types/embeddings.py,sha256=J7grkYYn7xhqeKaBO2T-8XQRtHhkzYzymovtGdIUK5A,751
|
|
42
42
|
together/types/error.py,sha256=OVlCs3cx_2WhZK4JzHT8SQyRIIqKOP1AZQ4y1PydjAE,370
|
|
43
43
|
together/types/files.py,sha256=-rEUfsV6f2vZB9NrFxT4_933ubsDIUNkPB-3OlOFk4A,1954
|
|
@@ -51,8 +51,8 @@ together/utils/api_helpers.py,sha256=RSF7SRhbjHzroMOSWAXscflByM1r1ta_1SpxkAT22iE
|
|
|
51
51
|
together/utils/files.py,sha256=gMLthqfP5hKxVAerHMdy7gLXzdfY6lyOXdpW24Y4X3I,7165
|
|
52
52
|
together/utils/tools.py,sha256=3-lXWP3cBCzOVSZg9tr5zOT1jaVeKAKVWxO2fcXZTh8,1788
|
|
53
53
|
together/version.py,sha256=p03ivHyE0SyWU4jAnRTBi_sOwywVWoZPU4g2gzRgG-Y,126
|
|
54
|
-
together-1.2.
|
|
55
|
-
together-1.2.
|
|
56
|
-
together-1.2.
|
|
57
|
-
together-1.2.
|
|
58
|
-
together-1.2.
|
|
54
|
+
together-1.2.12.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
55
|
+
together-1.2.12.dist-info/METADATA,sha256=FOar9eWf8dWhdiZ3x_ALmz14KJT5TqTkrIcHzVk_9X8,11813
|
|
56
|
+
together-1.2.12.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
57
|
+
together-1.2.12.dist-info/entry_points.txt,sha256=G-b5NKW6lUUf1V1fH8IPTBb7jXnK7lhbX9H1zTEJXPs,50
|
|
58
|
+
together-1.2.12.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|