together 2.0.0a17__py3-none-any.whl → 2.0.0a18__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.
Files changed (57) hide show
  1. together/_base_client.py +5 -2
  2. together/_client.py +1 -39
  3. together/_compat.py +3 -3
  4. together/_utils/_json.py +35 -0
  5. together/_version.py +1 -1
  6. together/lib/cli/api/endpoints/create.py +7 -3
  7. together/lib/cli/api/endpoints/hardware.py +37 -6
  8. together/lib/cli/api/models/upload.py +5 -1
  9. together/resources/__init__.py +0 -14
  10. together/resources/beta/__init__.py +14 -0
  11. together/resources/beta/beta.py +32 -0
  12. together/resources/beta/clusters/clusters.py +12 -12
  13. together/resources/beta/clusters/storage.py +10 -10
  14. together/resources/beta/jig/__init__.py +61 -0
  15. together/resources/beta/jig/jig.py +1024 -0
  16. together/resources/beta/jig/queue.py +482 -0
  17. together/resources/beta/jig/secrets.py +548 -0
  18. together/resources/beta/jig/volumes.py +514 -0
  19. together/resources/chat/completions.py +10 -0
  20. together/resources/models/__init__.py +33 -0
  21. together/resources/{models.py → models/models.py} +41 -9
  22. together/resources/models/uploads.py +163 -0
  23. together/types/__init__.py +0 -2
  24. together/types/beta/__init__.py +6 -0
  25. together/types/beta/deployment.py +261 -0
  26. together/types/beta/deployment_logs.py +11 -0
  27. together/types/beta/jig/__init__.py +20 -0
  28. together/types/beta/jig/queue_cancel_params.py +13 -0
  29. together/types/beta/jig/queue_cancel_response.py +11 -0
  30. together/types/beta/jig/queue_metrics_params.py +12 -0
  31. together/types/beta/jig/queue_metrics_response.py +8 -0
  32. together/types/beta/jig/queue_retrieve_params.py +15 -0
  33. together/types/beta/jig/queue_retrieve_response.py +35 -0
  34. together/types/beta/jig/queue_submit_params.py +19 -0
  35. together/types/beta/jig/queue_submit_response.py +25 -0
  36. together/types/beta/jig/secret.py +33 -0
  37. together/types/beta/jig/secret_create_params.py +34 -0
  38. together/types/beta/jig/secret_list_response.py +16 -0
  39. together/types/beta/jig/secret_update_params.py +34 -0
  40. together/types/beta/jig/volume.py +47 -0
  41. together/types/beta/jig/volume_create_params.py +34 -0
  42. together/types/beta/jig/volume_list_response.py +16 -0
  43. together/types/beta/jig/volume_update_params.py +34 -0
  44. together/types/beta/jig_deploy_params.py +150 -0
  45. together/types/beta/jig_list_response.py +16 -0
  46. together/types/beta/jig_retrieve_logs_params.py +15 -0
  47. together/types/beta/jig_update_params.py +141 -0
  48. together/types/chat/completion_create_params.py +11 -0
  49. together/types/models/__init__.py +5 -0
  50. together/types/{job_retrieve_response.py → models/upload_status_response.py} +3 -3
  51. {together-2.0.0a17.dist-info → together-2.0.0a18.dist-info}/METADATA +11 -14
  52. {together-2.0.0a17.dist-info → together-2.0.0a18.dist-info}/RECORD +55 -25
  53. together/resources/jobs.py +0 -214
  54. together/types/job_list_response.py +0 -47
  55. {together-2.0.0a17.dist-info → together-2.0.0a18.dist-info}/WHEEL +0 -0
  56. {together-2.0.0a17.dist-info → together-2.0.0a18.dist-info}/entry_points.txt +0 -0
  57. {together-2.0.0a17.dist-info → together-2.0.0a18.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,514 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing_extensions import Literal
6
+
7
+ import httpx
8
+
9
+ from ...._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
10
+ from ...._utils import maybe_transform, async_maybe_transform
11
+ from ...._compat import cached_property
12
+ from ...._resource import SyncAPIResource, AsyncAPIResource
13
+ from ...._response import (
14
+ to_raw_response_wrapper,
15
+ to_streamed_response_wrapper,
16
+ async_to_raw_response_wrapper,
17
+ async_to_streamed_response_wrapper,
18
+ )
19
+ from ...._base_client import make_request_options
20
+ from ....types.beta.jig import volume_create_params, volume_update_params
21
+ from ....types.beta.jig.volume import Volume
22
+ from ....types.beta.jig.volume_list_response import VolumeListResponse
23
+
24
+ __all__ = ["VolumesResource", "AsyncVolumesResource"]
25
+
26
+
27
+ class VolumesResource(SyncAPIResource):
28
+ @cached_property
29
+ def with_raw_response(self) -> VolumesResourceWithRawResponse:
30
+ """
31
+ This property can be used as a prefix for any HTTP method call to return
32
+ the raw response object instead of the parsed content.
33
+
34
+ For more information, see https://www.github.com/togethercomputer/together-py#accessing-raw-response-data-eg-headers
35
+ """
36
+ return VolumesResourceWithRawResponse(self)
37
+
38
+ @cached_property
39
+ def with_streaming_response(self) -> VolumesResourceWithStreamingResponse:
40
+ """
41
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
42
+
43
+ For more information, see https://www.github.com/togethercomputer/together-py#with_streaming_response
44
+ """
45
+ return VolumesResourceWithStreamingResponse(self)
46
+
47
+ def create(
48
+ self,
49
+ *,
50
+ content: volume_create_params.Content,
51
+ name: str,
52
+ type: Literal["readOnly"],
53
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
54
+ # The extra values given here take precedence over values defined on the client or passed to this method.
55
+ extra_headers: Headers | None = None,
56
+ extra_query: Query | None = None,
57
+ extra_body: Body | None = None,
58
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
59
+ ) -> Volume:
60
+ """
61
+ Create a new volume to preload files in deployments
62
+
63
+ Args:
64
+ content: Content specifies the content configuration for this volume
65
+
66
+ name: Name is the unique identifier for the volume within the project
67
+
68
+ type: Type is the volume type (currently only "readOnly" is supported)
69
+
70
+ extra_headers: Send extra headers
71
+
72
+ extra_query: Add additional query parameters to the request
73
+
74
+ extra_body: Add additional JSON properties to the request
75
+
76
+ timeout: Override the client-level default timeout for this request, in seconds
77
+ """
78
+ return self._post(
79
+ "/deployments/storage/volumes",
80
+ body=maybe_transform(
81
+ {
82
+ "content": content,
83
+ "name": name,
84
+ "type": type,
85
+ },
86
+ volume_create_params.VolumeCreateParams,
87
+ ),
88
+ options=make_request_options(
89
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
90
+ ),
91
+ cast_to=Volume,
92
+ )
93
+
94
+ def retrieve(
95
+ self,
96
+ id: str,
97
+ *,
98
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
99
+ # The extra values given here take precedence over values defined on the client or passed to this method.
100
+ extra_headers: Headers | None = None,
101
+ extra_query: Query | None = None,
102
+ extra_body: Body | None = None,
103
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
104
+ ) -> Volume:
105
+ """
106
+ Retrieve details of a specific volume by its ID or name
107
+
108
+ Args:
109
+ extra_headers: Send extra headers
110
+
111
+ extra_query: Add additional query parameters to the request
112
+
113
+ extra_body: Add additional JSON properties to the request
114
+
115
+ timeout: Override the client-level default timeout for this request, in seconds
116
+ """
117
+ if not id:
118
+ raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
119
+ return self._get(
120
+ f"/deployments/storage/volumes/{id}",
121
+ options=make_request_options(
122
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
123
+ ),
124
+ cast_to=Volume,
125
+ )
126
+
127
+ def update(
128
+ self,
129
+ id: str,
130
+ *,
131
+ content: volume_update_params.Content | Omit = omit,
132
+ name: str | Omit = omit,
133
+ type: Literal["readOnly"] | Omit = omit,
134
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
135
+ # The extra values given here take precedence over values defined on the client or passed to this method.
136
+ extra_headers: Headers | None = None,
137
+ extra_query: Query | None = None,
138
+ extra_body: Body | None = None,
139
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
140
+ ) -> Volume:
141
+ """
142
+ Update an existing volume's configuration or contents
143
+
144
+ Args:
145
+ content: Content specifies the new content that will be preloaded to this volume
146
+
147
+ name: Name is the new unique identifier for the volume within the project
148
+
149
+ type: Type is the new volume type (currently only "readOnly" is supported)
150
+
151
+ extra_headers: Send extra headers
152
+
153
+ extra_query: Add additional query parameters to the request
154
+
155
+ extra_body: Add additional JSON properties to the request
156
+
157
+ timeout: Override the client-level default timeout for this request, in seconds
158
+ """
159
+ if not id:
160
+ raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
161
+ return self._patch(
162
+ f"/deployments/storage/volumes/{id}",
163
+ body=maybe_transform(
164
+ {
165
+ "content": content,
166
+ "name": name,
167
+ "type": type,
168
+ },
169
+ volume_update_params.VolumeUpdateParams,
170
+ ),
171
+ options=make_request_options(
172
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
173
+ ),
174
+ cast_to=Volume,
175
+ )
176
+
177
+ def list(
178
+ self,
179
+ *,
180
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
181
+ # The extra values given here take precedence over values defined on the client or passed to this method.
182
+ extra_headers: Headers | None = None,
183
+ extra_query: Query | None = None,
184
+ extra_body: Body | None = None,
185
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
186
+ ) -> VolumeListResponse:
187
+ """Retrieve all volumes in your project"""
188
+ return self._get(
189
+ "/deployments/storage/volumes",
190
+ options=make_request_options(
191
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
192
+ ),
193
+ cast_to=VolumeListResponse,
194
+ )
195
+
196
+ def delete(
197
+ self,
198
+ id: str,
199
+ *,
200
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
201
+ # The extra values given here take precedence over values defined on the client or passed to this method.
202
+ extra_headers: Headers | None = None,
203
+ extra_query: Query | None = None,
204
+ extra_body: Body | None = None,
205
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
206
+ ) -> object:
207
+ """
208
+ Delete an existing volume
209
+
210
+ Args:
211
+ extra_headers: Send extra headers
212
+
213
+ extra_query: Add additional query parameters to the request
214
+
215
+ extra_body: Add additional JSON properties to the request
216
+
217
+ timeout: Override the client-level default timeout for this request, in seconds
218
+ """
219
+ if not id:
220
+ raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
221
+ return self._delete(
222
+ f"/deployments/storage/volumes/{id}",
223
+ options=make_request_options(
224
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
225
+ ),
226
+ cast_to=object,
227
+ )
228
+
229
+
230
+ class AsyncVolumesResource(AsyncAPIResource):
231
+ @cached_property
232
+ def with_raw_response(self) -> AsyncVolumesResourceWithRawResponse:
233
+ """
234
+ This property can be used as a prefix for any HTTP method call to return
235
+ the raw response object instead of the parsed content.
236
+
237
+ For more information, see https://www.github.com/togethercomputer/together-py#accessing-raw-response-data-eg-headers
238
+ """
239
+ return AsyncVolumesResourceWithRawResponse(self)
240
+
241
+ @cached_property
242
+ def with_streaming_response(self) -> AsyncVolumesResourceWithStreamingResponse:
243
+ """
244
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
245
+
246
+ For more information, see https://www.github.com/togethercomputer/together-py#with_streaming_response
247
+ """
248
+ return AsyncVolumesResourceWithStreamingResponse(self)
249
+
250
+ async def create(
251
+ self,
252
+ *,
253
+ content: volume_create_params.Content,
254
+ name: str,
255
+ type: Literal["readOnly"],
256
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
257
+ # The extra values given here take precedence over values defined on the client or passed to this method.
258
+ extra_headers: Headers | None = None,
259
+ extra_query: Query | None = None,
260
+ extra_body: Body | None = None,
261
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
262
+ ) -> Volume:
263
+ """
264
+ Create a new volume to preload files in deployments
265
+
266
+ Args:
267
+ content: Content specifies the content configuration for this volume
268
+
269
+ name: Name is the unique identifier for the volume within the project
270
+
271
+ type: Type is the volume type (currently only "readOnly" is supported)
272
+
273
+ extra_headers: Send extra headers
274
+
275
+ extra_query: Add additional query parameters to the request
276
+
277
+ extra_body: Add additional JSON properties to the request
278
+
279
+ timeout: Override the client-level default timeout for this request, in seconds
280
+ """
281
+ return await self._post(
282
+ "/deployments/storage/volumes",
283
+ body=await async_maybe_transform(
284
+ {
285
+ "content": content,
286
+ "name": name,
287
+ "type": type,
288
+ },
289
+ volume_create_params.VolumeCreateParams,
290
+ ),
291
+ options=make_request_options(
292
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
293
+ ),
294
+ cast_to=Volume,
295
+ )
296
+
297
+ async def retrieve(
298
+ self,
299
+ id: str,
300
+ *,
301
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
302
+ # The extra values given here take precedence over values defined on the client or passed to this method.
303
+ extra_headers: Headers | None = None,
304
+ extra_query: Query | None = None,
305
+ extra_body: Body | None = None,
306
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
307
+ ) -> Volume:
308
+ """
309
+ Retrieve details of a specific volume by its ID or name
310
+
311
+ Args:
312
+ extra_headers: Send extra headers
313
+
314
+ extra_query: Add additional query parameters to the request
315
+
316
+ extra_body: Add additional JSON properties to the request
317
+
318
+ timeout: Override the client-level default timeout for this request, in seconds
319
+ """
320
+ if not id:
321
+ raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
322
+ return await self._get(
323
+ f"/deployments/storage/volumes/{id}",
324
+ options=make_request_options(
325
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
326
+ ),
327
+ cast_to=Volume,
328
+ )
329
+
330
+ async def update(
331
+ self,
332
+ id: str,
333
+ *,
334
+ content: volume_update_params.Content | Omit = omit,
335
+ name: str | Omit = omit,
336
+ type: Literal["readOnly"] | Omit = omit,
337
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
338
+ # The extra values given here take precedence over values defined on the client or passed to this method.
339
+ extra_headers: Headers | None = None,
340
+ extra_query: Query | None = None,
341
+ extra_body: Body | None = None,
342
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
343
+ ) -> Volume:
344
+ """
345
+ Update an existing volume's configuration or contents
346
+
347
+ Args:
348
+ content: Content specifies the new content that will be preloaded to this volume
349
+
350
+ name: Name is the new unique identifier for the volume within the project
351
+
352
+ type: Type is the new volume type (currently only "readOnly" is supported)
353
+
354
+ extra_headers: Send extra headers
355
+
356
+ extra_query: Add additional query parameters to the request
357
+
358
+ extra_body: Add additional JSON properties to the request
359
+
360
+ timeout: Override the client-level default timeout for this request, in seconds
361
+ """
362
+ if not id:
363
+ raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
364
+ return await self._patch(
365
+ f"/deployments/storage/volumes/{id}",
366
+ body=await async_maybe_transform(
367
+ {
368
+ "content": content,
369
+ "name": name,
370
+ "type": type,
371
+ },
372
+ volume_update_params.VolumeUpdateParams,
373
+ ),
374
+ options=make_request_options(
375
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
376
+ ),
377
+ cast_to=Volume,
378
+ )
379
+
380
+ async def list(
381
+ self,
382
+ *,
383
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
384
+ # The extra values given here take precedence over values defined on the client or passed to this method.
385
+ extra_headers: Headers | None = None,
386
+ extra_query: Query | None = None,
387
+ extra_body: Body | None = None,
388
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
389
+ ) -> VolumeListResponse:
390
+ """Retrieve all volumes in your project"""
391
+ return await self._get(
392
+ "/deployments/storage/volumes",
393
+ options=make_request_options(
394
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
395
+ ),
396
+ cast_to=VolumeListResponse,
397
+ )
398
+
399
+ async def delete(
400
+ self,
401
+ id: str,
402
+ *,
403
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
404
+ # The extra values given here take precedence over values defined on the client or passed to this method.
405
+ extra_headers: Headers | None = None,
406
+ extra_query: Query | None = None,
407
+ extra_body: Body | None = None,
408
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
409
+ ) -> object:
410
+ """
411
+ Delete an existing volume
412
+
413
+ Args:
414
+ extra_headers: Send extra headers
415
+
416
+ extra_query: Add additional query parameters to the request
417
+
418
+ extra_body: Add additional JSON properties to the request
419
+
420
+ timeout: Override the client-level default timeout for this request, in seconds
421
+ """
422
+ if not id:
423
+ raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
424
+ return await self._delete(
425
+ f"/deployments/storage/volumes/{id}",
426
+ options=make_request_options(
427
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
428
+ ),
429
+ cast_to=object,
430
+ )
431
+
432
+
433
+ class VolumesResourceWithRawResponse:
434
+ def __init__(self, volumes: VolumesResource) -> None:
435
+ self._volumes = volumes
436
+
437
+ self.create = to_raw_response_wrapper(
438
+ volumes.create,
439
+ )
440
+ self.retrieve = to_raw_response_wrapper(
441
+ volumes.retrieve,
442
+ )
443
+ self.update = to_raw_response_wrapper(
444
+ volumes.update,
445
+ )
446
+ self.list = to_raw_response_wrapper(
447
+ volumes.list,
448
+ )
449
+ self.delete = to_raw_response_wrapper(
450
+ volumes.delete,
451
+ )
452
+
453
+
454
+ class AsyncVolumesResourceWithRawResponse:
455
+ def __init__(self, volumes: AsyncVolumesResource) -> None:
456
+ self._volumes = volumes
457
+
458
+ self.create = async_to_raw_response_wrapper(
459
+ volumes.create,
460
+ )
461
+ self.retrieve = async_to_raw_response_wrapper(
462
+ volumes.retrieve,
463
+ )
464
+ self.update = async_to_raw_response_wrapper(
465
+ volumes.update,
466
+ )
467
+ self.list = async_to_raw_response_wrapper(
468
+ volumes.list,
469
+ )
470
+ self.delete = async_to_raw_response_wrapper(
471
+ volumes.delete,
472
+ )
473
+
474
+
475
+ class VolumesResourceWithStreamingResponse:
476
+ def __init__(self, volumes: VolumesResource) -> None:
477
+ self._volumes = volumes
478
+
479
+ self.create = to_streamed_response_wrapper(
480
+ volumes.create,
481
+ )
482
+ self.retrieve = to_streamed_response_wrapper(
483
+ volumes.retrieve,
484
+ )
485
+ self.update = to_streamed_response_wrapper(
486
+ volumes.update,
487
+ )
488
+ self.list = to_streamed_response_wrapper(
489
+ volumes.list,
490
+ )
491
+ self.delete = to_streamed_response_wrapper(
492
+ volumes.delete,
493
+ )
494
+
495
+
496
+ class AsyncVolumesResourceWithStreamingResponse:
497
+ def __init__(self, volumes: AsyncVolumesResource) -> None:
498
+ self._volumes = volumes
499
+
500
+ self.create = async_to_streamed_response_wrapper(
501
+ volumes.create,
502
+ )
503
+ self.retrieve = async_to_streamed_response_wrapper(
504
+ volumes.retrieve,
505
+ )
506
+ self.update = async_to_streamed_response_wrapper(
507
+ volumes.update,
508
+ )
509
+ self.list = async_to_streamed_response_wrapper(
510
+ volumes.list,
511
+ )
512
+ self.delete = async_to_streamed_response_wrapper(
513
+ volumes.delete,
514
+ )
@@ -74,6 +74,7 @@ class CompletionsResource(SyncAPIResource):
74
74
  min_p: float | Omit = omit,
75
75
  n: int | Omit = omit,
76
76
  presence_penalty: float | Omit = omit,
77
+ reasoning: completion_create_params.Reasoning | Omit = omit,
77
78
  reasoning_effort: Literal["low", "medium", "high"] | Omit = omit,
78
79
  repetition_penalty: float | Omit = omit,
79
80
  response_format: completion_create_params.ResponseFormat | Omit = omit,
@@ -222,6 +223,7 @@ class CompletionsResource(SyncAPIResource):
222
223
  min_p: float | Omit = omit,
223
224
  n: int | Omit = omit,
224
225
  presence_penalty: float | Omit = omit,
226
+ reasoning: completion_create_params.Reasoning | Omit = omit,
225
227
  reasoning_effort: Literal["low", "medium", "high"] | Omit = omit,
226
228
  repetition_penalty: float | Omit = omit,
227
229
  response_format: completion_create_params.ResponseFormat | Omit = omit,
@@ -369,6 +371,7 @@ class CompletionsResource(SyncAPIResource):
369
371
  min_p: float | Omit = omit,
370
372
  n: int | Omit = omit,
371
373
  presence_penalty: float | Omit = omit,
374
+ reasoning: completion_create_params.Reasoning | Omit = omit,
372
375
  reasoning_effort: Literal["low", "medium", "high"] | Omit = omit,
373
376
  repetition_penalty: float | Omit = omit,
374
377
  response_format: completion_create_params.ResponseFormat | Omit = omit,
@@ -515,6 +518,7 @@ class CompletionsResource(SyncAPIResource):
515
518
  min_p: float | Omit = omit,
516
519
  n: int | Omit = omit,
517
520
  presence_penalty: float | Omit = omit,
521
+ reasoning: completion_create_params.Reasoning | Omit = omit,
518
522
  reasoning_effort: Literal["low", "medium", "high"] | Omit = omit,
519
523
  repetition_penalty: float | Omit = omit,
520
524
  response_format: completion_create_params.ResponseFormat | Omit = omit,
@@ -552,6 +556,7 @@ class CompletionsResource(SyncAPIResource):
552
556
  "min_p": min_p,
553
557
  "n": n,
554
558
  "presence_penalty": presence_penalty,
559
+ "reasoning": reasoning,
555
560
  "reasoning_effort": reasoning_effort,
556
561
  "repetition_penalty": repetition_penalty,
557
562
  "response_format": response_format,
@@ -625,6 +630,7 @@ class AsyncCompletionsResource(AsyncAPIResource):
625
630
  min_p: float | Omit = omit,
626
631
  n: int | Omit = omit,
627
632
  presence_penalty: float | Omit = omit,
633
+ reasoning: completion_create_params.Reasoning | Omit = omit,
628
634
  reasoning_effort: Literal["low", "medium", "high"] | Omit = omit,
629
635
  repetition_penalty: float | Omit = omit,
630
636
  response_format: completion_create_params.ResponseFormat | Omit = omit,
@@ -773,6 +779,7 @@ class AsyncCompletionsResource(AsyncAPIResource):
773
779
  min_p: float | Omit = omit,
774
780
  n: int | Omit = omit,
775
781
  presence_penalty: float | Omit = omit,
782
+ reasoning: completion_create_params.Reasoning | Omit = omit,
776
783
  reasoning_effort: Literal["low", "medium", "high"] | Omit = omit,
777
784
  repetition_penalty: float | Omit = omit,
778
785
  response_format: completion_create_params.ResponseFormat | Omit = omit,
@@ -920,6 +927,7 @@ class AsyncCompletionsResource(AsyncAPIResource):
920
927
  min_p: float | Omit = omit,
921
928
  n: int | Omit = omit,
922
929
  presence_penalty: float | Omit = omit,
930
+ reasoning: completion_create_params.Reasoning | Omit = omit,
923
931
  reasoning_effort: Literal["low", "medium", "high"] | Omit = omit,
924
932
  repetition_penalty: float | Omit = omit,
925
933
  response_format: completion_create_params.ResponseFormat | Omit = omit,
@@ -1066,6 +1074,7 @@ class AsyncCompletionsResource(AsyncAPIResource):
1066
1074
  min_p: float | Omit = omit,
1067
1075
  n: int | Omit = omit,
1068
1076
  presence_penalty: float | Omit = omit,
1077
+ reasoning: completion_create_params.Reasoning | Omit = omit,
1069
1078
  reasoning_effort: Literal["low", "medium", "high"] | Omit = omit,
1070
1079
  repetition_penalty: float | Omit = omit,
1071
1080
  response_format: completion_create_params.ResponseFormat | Omit = omit,
@@ -1103,6 +1112,7 @@ class AsyncCompletionsResource(AsyncAPIResource):
1103
1112
  "min_p": min_p,
1104
1113
  "n": n,
1105
1114
  "presence_penalty": presence_penalty,
1115
+ "reasoning": reasoning,
1106
1116
  "reasoning_effort": reasoning_effort,
1107
1117
  "repetition_penalty": repetition_penalty,
1108
1118
  "response_format": response_format,
@@ -0,0 +1,33 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from .models import (
4
+ ModelsResource,
5
+ AsyncModelsResource,
6
+ ModelsResourceWithRawResponse,
7
+ AsyncModelsResourceWithRawResponse,
8
+ ModelsResourceWithStreamingResponse,
9
+ AsyncModelsResourceWithStreamingResponse,
10
+ )
11
+ from .uploads import (
12
+ UploadsResource,
13
+ AsyncUploadsResource,
14
+ UploadsResourceWithRawResponse,
15
+ AsyncUploadsResourceWithRawResponse,
16
+ UploadsResourceWithStreamingResponse,
17
+ AsyncUploadsResourceWithStreamingResponse,
18
+ )
19
+
20
+ __all__ = [
21
+ "UploadsResource",
22
+ "AsyncUploadsResource",
23
+ "UploadsResourceWithRawResponse",
24
+ "AsyncUploadsResourceWithRawResponse",
25
+ "UploadsResourceWithStreamingResponse",
26
+ "AsyncUploadsResourceWithStreamingResponse",
27
+ "ModelsResource",
28
+ "AsyncModelsResource",
29
+ "ModelsResourceWithRawResponse",
30
+ "AsyncModelsResourceWithRawResponse",
31
+ "ModelsResourceWithStreamingResponse",
32
+ "AsyncModelsResourceWithStreamingResponse",
33
+ ]