scale-gp-beta 0.1.0a31__py3-none-any.whl → 0.1.0a32__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 (34) hide show
  1. scale_gp_beta/__init__.py +3 -1
  2. scale_gp_beta/_base_client.py +9 -9
  3. scale_gp_beta/_client.py +12 -12
  4. scale_gp_beta/_models.py +10 -4
  5. scale_gp_beta/_qs.py +7 -7
  6. scale_gp_beta/_types.py +18 -11
  7. scale_gp_beta/_utils/_transform.py +2 -2
  8. scale_gp_beta/_utils/_utils.py +4 -4
  9. scale_gp_beta/_version.py +1 -1
  10. scale_gp_beta/resources/chat/completions.py +235 -235
  11. scale_gp_beta/resources/completions.py +133 -133
  12. scale_gp_beta/resources/dataset_items.py +27 -27
  13. scale_gp_beta/resources/datasets.py +37 -37
  14. scale_gp_beta/resources/evaluation_items.py +19 -19
  15. scale_gp_beta/resources/evaluations.py +83 -83
  16. scale_gp_beta/resources/files/content.py +3 -3
  17. scale_gp_beta/resources/files/files.py +21 -21
  18. scale_gp_beta/resources/inference.py +7 -7
  19. scale_gp_beta/resources/models.py +71 -73
  20. scale_gp_beta/resources/questions.py +43 -43
  21. scale_gp_beta/resources/responses.py +33 -33
  22. scale_gp_beta/resources/spans.py +81 -81
  23. scale_gp_beta/types/chat/chat_completion.py +114 -19
  24. scale_gp_beta/types/chat/chat_completion_chunk.py +84 -14
  25. scale_gp_beta/types/completion.py +36 -6
  26. scale_gp_beta/types/evaluation.py +3 -0
  27. scale_gp_beta/types/evaluation_task.py +6 -1
  28. scale_gp_beta/types/inference_model.py +6 -1
  29. scale_gp_beta/types/response.py +852 -142
  30. scale_gp_beta/types/response_create_response.py +6072 -1012
  31. {scale_gp_beta-0.1.0a31.dist-info → scale_gp_beta-0.1.0a32.dist-info}/METADATA +1 -1
  32. {scale_gp_beta-0.1.0a31.dist-info → scale_gp_beta-0.1.0a32.dist-info}/RECORD +34 -34
  33. {scale_gp_beta-0.1.0a31.dist-info → scale_gp_beta-0.1.0a32.dist-info}/WHEEL +0 -0
  34. {scale_gp_beta-0.1.0a31.dist-info → scale_gp_beta-0.1.0a32.dist-info}/licenses/LICENSE +0 -0
@@ -4,7 +4,7 @@ from __future__ import annotations
4
4
 
5
5
  import httpx
6
6
 
7
- from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
7
+ from ..._types import Body, Query, Headers, NotGiven, not_given
8
8
  from ..._compat import cached_property
9
9
  from ..._resource import SyncAPIResource, AsyncAPIResource
10
10
  from ..._response import (
@@ -47,7 +47,7 @@ class ContentResource(SyncAPIResource):
47
47
  extra_headers: Headers | None = None,
48
48
  extra_query: Query | None = None,
49
49
  extra_body: Body | None = None,
50
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
50
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
51
51
  ) -> object:
52
52
  """
53
53
  Get File Content
@@ -101,7 +101,7 @@ class AsyncContentResource(AsyncAPIResource):
101
101
  extra_headers: Headers | None = None,
102
102
  extra_query: Query | None = None,
103
103
  extra_body: Body | None = None,
104
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
104
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
105
105
  ) -> object:
106
106
  """
107
107
  Get File Content
@@ -16,7 +16,7 @@ from .content import (
16
16
  ContentResourceWithStreamingResponse,
17
17
  AsyncContentResourceWithStreamingResponse,
18
18
  )
19
- from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven, FileTypes
19
+ from ..._types import Body, Omit, Query, Headers, NotGiven, FileTypes, omit, not_given
20
20
  from ..._utils import extract_files, maybe_transform, deepcopy_minimal, async_maybe_transform
21
21
  from ..._compat import cached_property
22
22
  from ..._resource import SyncAPIResource, AsyncAPIResource
@@ -67,7 +67,7 @@ class FilesResource(SyncAPIResource):
67
67
  extra_headers: Headers | None = None,
68
68
  extra_query: Query | None = None,
69
69
  extra_body: Body | None = None,
70
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
70
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
71
71
  ) -> File:
72
72
  """
73
73
  Upload File
@@ -106,7 +106,7 @@ class FilesResource(SyncAPIResource):
106
106
  extra_headers: Headers | None = None,
107
107
  extra_query: Query | None = None,
108
108
  extra_body: Body | None = None,
109
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
109
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
110
110
  ) -> File:
111
111
  """
112
112
  Get File
@@ -134,13 +134,13 @@ class FilesResource(SyncAPIResource):
134
134
  self,
135
135
  file_id: str,
136
136
  *,
137
- tags: Dict[str, object] | NotGiven = NOT_GIVEN,
137
+ tags: Dict[str, object] | Omit = omit,
138
138
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
139
139
  # The extra values given here take precedence over values defined on the client or passed to this method.
140
140
  extra_headers: Headers | None = None,
141
141
  extra_query: Query | None = None,
142
142
  extra_body: Body | None = None,
143
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
143
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
144
144
  ) -> File:
145
145
  """
146
146
  Update File
@@ -168,16 +168,16 @@ class FilesResource(SyncAPIResource):
168
168
  def list(
169
169
  self,
170
170
  *,
171
- ending_before: str | NotGiven = NOT_GIVEN,
172
- limit: int | NotGiven = NOT_GIVEN,
173
- sort_order: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
174
- starting_after: str | NotGiven = NOT_GIVEN,
171
+ ending_before: str | Omit = omit,
172
+ limit: int | Omit = omit,
173
+ sort_order: Literal["asc", "desc"] | Omit = omit,
174
+ starting_after: str | Omit = omit,
175
175
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
176
176
  # The extra values given here take precedence over values defined on the client or passed to this method.
177
177
  extra_headers: Headers | None = None,
178
178
  extra_query: Query | None = None,
179
179
  extra_body: Body | None = None,
180
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
180
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
181
181
  ) -> SyncCursorPage[File]:
182
182
  """
183
183
  List Files
@@ -221,7 +221,7 @@ class FilesResource(SyncAPIResource):
221
221
  extra_headers: Headers | None = None,
222
222
  extra_query: Query | None = None,
223
223
  extra_body: Body | None = None,
224
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
224
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
225
225
  ) -> FileDeleteResponse:
226
226
  """
227
227
  Delete File
@@ -279,7 +279,7 @@ class AsyncFilesResource(AsyncAPIResource):
279
279
  extra_headers: Headers | None = None,
280
280
  extra_query: Query | None = None,
281
281
  extra_body: Body | None = None,
282
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
282
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
283
283
  ) -> File:
284
284
  """
285
285
  Upload File
@@ -318,7 +318,7 @@ class AsyncFilesResource(AsyncAPIResource):
318
318
  extra_headers: Headers | None = None,
319
319
  extra_query: Query | None = None,
320
320
  extra_body: Body | None = None,
321
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
321
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
322
322
  ) -> File:
323
323
  """
324
324
  Get File
@@ -346,13 +346,13 @@ class AsyncFilesResource(AsyncAPIResource):
346
346
  self,
347
347
  file_id: str,
348
348
  *,
349
- tags: Dict[str, object] | NotGiven = NOT_GIVEN,
349
+ tags: Dict[str, object] | Omit = omit,
350
350
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
351
351
  # The extra values given here take precedence over values defined on the client or passed to this method.
352
352
  extra_headers: Headers | None = None,
353
353
  extra_query: Query | None = None,
354
354
  extra_body: Body | None = None,
355
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
355
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
356
356
  ) -> File:
357
357
  """
358
358
  Update File
@@ -380,16 +380,16 @@ class AsyncFilesResource(AsyncAPIResource):
380
380
  def list(
381
381
  self,
382
382
  *,
383
- ending_before: str | NotGiven = NOT_GIVEN,
384
- limit: int | NotGiven = NOT_GIVEN,
385
- sort_order: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
386
- starting_after: str | NotGiven = NOT_GIVEN,
383
+ ending_before: str | Omit = omit,
384
+ limit: int | Omit = omit,
385
+ sort_order: Literal["asc", "desc"] | Omit = omit,
386
+ starting_after: str | Omit = omit,
387
387
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
388
388
  # The extra values given here take precedence over values defined on the client or passed to this method.
389
389
  extra_headers: Headers | None = None,
390
390
  extra_query: Query | None = None,
391
391
  extra_body: Body | None = None,
392
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
392
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
393
393
  ) -> AsyncPaginator[File, AsyncCursorPage[File]]:
394
394
  """
395
395
  List Files
@@ -433,7 +433,7 @@ class AsyncFilesResource(AsyncAPIResource):
433
433
  extra_headers: Headers | None = None,
434
434
  extra_query: Query | None = None,
435
435
  extra_body: Body | None = None,
436
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
436
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
437
437
  ) -> FileDeleteResponse:
438
438
  """
439
439
  Delete File
@@ -7,7 +7,7 @@ from typing import Any, Dict, cast
7
7
  import httpx
8
8
 
9
9
  from ..types import inference_create_params
10
- from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
10
+ from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
11
11
  from .._utils import maybe_transform, async_maybe_transform
12
12
  from .._compat import cached_property
13
13
  from .._resource import SyncAPIResource, AsyncAPIResource
@@ -47,14 +47,14 @@ class InferenceResource(SyncAPIResource):
47
47
  self,
48
48
  *,
49
49
  model: str,
50
- args: Dict[str, object] | NotGiven = NOT_GIVEN,
51
- inference_configuration: inference_create_params.InferenceConfiguration | NotGiven = NOT_GIVEN,
50
+ args: Dict[str, object] | Omit = omit,
51
+ inference_configuration: inference_create_params.InferenceConfiguration | Omit = omit,
52
52
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
53
53
  # The extra values given here take precedence over values defined on the client or passed to this method.
54
54
  extra_headers: Headers | None = None,
55
55
  extra_query: Query | None = None,
56
56
  extra_body: Body | None = None,
57
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
57
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
58
58
  ) -> InferenceCreateResponse:
59
59
  """Generic Inference
60
60
 
@@ -121,14 +121,14 @@ class AsyncInferenceResource(AsyncAPIResource):
121
121
  self,
122
122
  *,
123
123
  model: str,
124
- args: Dict[str, object] | NotGiven = NOT_GIVEN,
125
- inference_configuration: inference_create_params.InferenceConfiguration | NotGiven = NOT_GIVEN,
124
+ args: Dict[str, object] | Omit = omit,
125
+ inference_configuration: inference_create_params.InferenceConfiguration | Omit = omit,
126
126
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
127
127
  # The extra values given here take precedence over values defined on the client or passed to this method.
128
128
  extra_headers: Headers | None = None,
129
129
  extra_query: Query | None = None,
130
130
  extra_body: Body | None = None,
131
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
131
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
132
132
  ) -> InferenceCreateResponse:
133
133
  """Generic Inference
134
134
 
@@ -8,7 +8,7 @@ from typing_extensions import Literal, overload
8
8
  import httpx
9
9
 
10
10
  from ..types import model_list_params, model_create_params, model_update_params
11
- from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
11
+ from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
12
12
  from .._utils import required_args, maybe_transform, async_maybe_transform
13
13
  from .._compat import cached_property
14
14
  from .._resource import SyncAPIResource, AsyncAPIResource
@@ -52,16 +52,16 @@ class ModelsResource(SyncAPIResource):
52
52
  *,
53
53
  name: str,
54
54
  vendor_configuration: model_create_params.LaunchModelCreateRequestVendorConfiguration,
55
- model_metadata: Dict[str, object] | NotGiven = NOT_GIVEN,
56
- model_type: Literal["generic"] | NotGiven = NOT_GIVEN,
57
- model_vendor: Literal["launch"] | NotGiven = NOT_GIVEN,
58
- on_conflict: Literal["error", "update"] | NotGiven = NOT_GIVEN,
55
+ model_metadata: Dict[str, object] | Omit = omit,
56
+ model_type: Literal["generic"] | Omit = omit,
57
+ model_vendor: Literal["launch"] | Omit = omit,
58
+ on_conflict: Literal["error", "update"] | Omit = omit,
59
59
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
60
60
  # The extra values given here take precedence over values defined on the client or passed to this method.
61
61
  extra_headers: Headers | None = None,
62
62
  extra_query: Query | None = None,
63
63
  extra_body: Body | None = None,
64
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
64
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
65
65
  ) -> InferenceModel:
66
66
  """
67
67
  Create Model
@@ -85,16 +85,16 @@ class ModelsResource(SyncAPIResource):
85
85
  *,
86
86
  name: str,
87
87
  vendor_configuration: model_create_params.LlmEngineModelCreateRequestVendorConfiguration,
88
- model_metadata: Dict[str, object] | NotGiven = NOT_GIVEN,
89
- model_type: Literal["chat_completion"] | NotGiven = NOT_GIVEN,
90
- model_vendor: Literal["llmengine"] | NotGiven = NOT_GIVEN,
91
- on_conflict: Literal["error", "update"] | NotGiven = NOT_GIVEN,
88
+ model_metadata: Dict[str, object] | Omit = omit,
89
+ model_type: Literal["chat_completion"] | Omit = omit,
90
+ model_vendor: Literal["llmengine"] | Omit = omit,
91
+ on_conflict: Literal["error", "update"] | Omit = omit,
92
92
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
93
93
  # The extra values given here take precedence over values defined on the client or passed to this method.
94
94
  extra_headers: Headers | None = None,
95
95
  extra_query: Query | None = None,
96
96
  extra_body: Body | None = None,
97
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
97
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
98
98
  ) -> InferenceModel:
99
99
  """
100
100
  Create Model
@@ -119,16 +119,16 @@ class ModelsResource(SyncAPIResource):
119
119
  name: str,
120
120
  vendor_configuration: model_create_params.LaunchModelCreateRequestVendorConfiguration
121
121
  | model_create_params.LlmEngineModelCreateRequestVendorConfiguration,
122
- model_metadata: Dict[str, object] | NotGiven = NOT_GIVEN,
123
- model_type: Literal["generic"] | Literal["chat_completion"] | NotGiven = NOT_GIVEN,
124
- model_vendor: Literal["launch"] | Literal["llmengine"] | NotGiven = NOT_GIVEN,
125
- on_conflict: Literal["error", "update"] | NotGiven = NOT_GIVEN,
122
+ model_metadata: Dict[str, object] | Omit = omit,
123
+ model_type: Literal["generic"] | Literal["chat_completion"] | Omit = omit,
124
+ model_vendor: Literal["launch"] | Literal["llmengine"] | Omit = omit,
125
+ on_conflict: Literal["error", "update"] | Omit = omit,
126
126
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
127
127
  # The extra values given here take precedence over values defined on the client or passed to this method.
128
128
  extra_headers: Headers | None = None,
129
129
  extra_query: Query | None = None,
130
130
  extra_body: Body | None = None,
131
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
131
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
132
132
  ) -> InferenceModel:
133
133
  return self._post(
134
134
  "/v5/models",
@@ -158,7 +158,7 @@ class ModelsResource(SyncAPIResource):
158
158
  extra_headers: Headers | None = None,
159
159
  extra_query: Query | None = None,
160
160
  extra_body: Body | None = None,
161
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
161
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
162
162
  ) -> InferenceModel:
163
163
  """
164
164
  Get Model
@@ -187,13 +187,13 @@ class ModelsResource(SyncAPIResource):
187
187
  self,
188
188
  model_id: str,
189
189
  *,
190
- model_metadata: Dict[str, object] | NotGiven = NOT_GIVEN,
190
+ model_metadata: Dict[str, object] | Omit = omit,
191
191
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
192
192
  # The extra values given here take precedence over values defined on the client or passed to this method.
193
193
  extra_headers: Headers | None = None,
194
194
  extra_query: Query | None = None,
195
195
  extra_body: Body | None = None,
196
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
196
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
197
197
  ) -> InferenceModel:
198
198
  """
199
199
  Update Model
@@ -215,13 +215,13 @@ class ModelsResource(SyncAPIResource):
215
215
  model_id: str,
216
216
  *,
217
217
  vendor_configuration: model_update_params.ModelConfigurationPatchRequestVendorConfiguration,
218
- model_metadata: Dict[str, object] | NotGiven = NOT_GIVEN,
218
+ model_metadata: Dict[str, object] | Omit = omit,
219
219
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
220
220
  # The extra values given here take precedence over values defined on the client or passed to this method.
221
221
  extra_headers: Headers | None = None,
222
222
  extra_query: Query | None = None,
223
223
  extra_body: Body | None = None,
224
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
224
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
225
225
  ) -> InferenceModel:
226
226
  """
227
227
  Update Model
@@ -243,13 +243,13 @@ class ModelsResource(SyncAPIResource):
243
243
  model_id: str,
244
244
  *,
245
245
  name: str,
246
- on_conflict: Literal["error", "swap"] | NotGiven = NOT_GIVEN,
246
+ on_conflict: Literal["error", "swap"] | Omit = omit,
247
247
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
248
248
  # The extra values given here take precedence over values defined on the client or passed to this method.
249
249
  extra_headers: Headers | None = None,
250
250
  extra_query: Query | None = None,
251
251
  extra_body: Body | None = None,
252
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
252
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
253
253
  ) -> InferenceModel:
254
254
  """
255
255
  Update Model
@@ -269,17 +269,16 @@ class ModelsResource(SyncAPIResource):
269
269
  self,
270
270
  model_id: str,
271
271
  *,
272
- model_metadata: Dict[str, object] | NotGiven = NOT_GIVEN,
273
- vendor_configuration: model_update_params.ModelConfigurationPatchRequestVendorConfiguration
274
- | NotGiven = NOT_GIVEN,
275
- name: str | NotGiven = NOT_GIVEN,
276
- on_conflict: Literal["error", "swap"] | NotGiven = NOT_GIVEN,
272
+ model_metadata: Dict[str, object] | Omit = omit,
273
+ vendor_configuration: model_update_params.ModelConfigurationPatchRequestVendorConfiguration | Omit = omit,
274
+ name: str | Omit = omit,
275
+ on_conflict: Literal["error", "swap"] | Omit = omit,
277
276
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
278
277
  # The extra values given here take precedence over values defined on the client or passed to this method.
279
278
  extra_headers: Headers | None = None,
280
279
  extra_query: Query | None = None,
281
280
  extra_body: Body | None = None,
282
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
281
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
283
282
  ) -> InferenceModel:
284
283
  if not model_id:
285
284
  raise ValueError(f"Expected a non-empty value for `model_id` but received {model_id!r}")
@@ -303,8 +302,8 @@ class ModelsResource(SyncAPIResource):
303
302
  def list(
304
303
  self,
305
304
  *,
306
- ending_before: str | NotGiven = NOT_GIVEN,
307
- limit: int | NotGiven = NOT_GIVEN,
305
+ ending_before: str | Omit = omit,
306
+ limit: int | Omit = omit,
308
307
  model_vendor: Literal[
309
308
  "openai",
310
309
  "cohere",
@@ -319,16 +318,16 @@ class ModelsResource(SyncAPIResource):
319
318
  "xai",
320
319
  "fireworks_ai",
321
320
  ]
322
- | NotGiven = NOT_GIVEN,
323
- name: str | NotGiven = NOT_GIVEN,
324
- sort_order: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
325
- starting_after: str | NotGiven = NOT_GIVEN,
321
+ | Omit = omit,
322
+ name: str | Omit = omit,
323
+ sort_order: Literal["asc", "desc"] | Omit = omit,
324
+ starting_after: str | Omit = omit,
326
325
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
327
326
  # The extra values given here take precedence over values defined on the client or passed to this method.
328
327
  extra_headers: Headers | None = None,
329
328
  extra_query: Query | None = None,
330
329
  extra_body: Body | None = None,
331
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
330
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
332
331
  ) -> SyncCursorPage[InferenceModel]:
333
332
  """
334
333
  List Models
@@ -374,7 +373,7 @@ class ModelsResource(SyncAPIResource):
374
373
  extra_headers: Headers | None = None,
375
374
  extra_query: Query | None = None,
376
375
  extra_body: Body | None = None,
377
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
376
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
378
377
  ) -> ModelDeleteResponse:
379
378
  """
380
379
  Delete Model
@@ -425,16 +424,16 @@ class AsyncModelsResource(AsyncAPIResource):
425
424
  *,
426
425
  name: str,
427
426
  vendor_configuration: model_create_params.LaunchModelCreateRequestVendorConfiguration,
428
- model_metadata: Dict[str, object] | NotGiven = NOT_GIVEN,
429
- model_type: Literal["generic"] | NotGiven = NOT_GIVEN,
430
- model_vendor: Literal["launch"] | NotGiven = NOT_GIVEN,
431
- on_conflict: Literal["error", "update"] | NotGiven = NOT_GIVEN,
427
+ model_metadata: Dict[str, object] | Omit = omit,
428
+ model_type: Literal["generic"] | Omit = omit,
429
+ model_vendor: Literal["launch"] | Omit = omit,
430
+ on_conflict: Literal["error", "update"] | Omit = omit,
432
431
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
433
432
  # The extra values given here take precedence over values defined on the client or passed to this method.
434
433
  extra_headers: Headers | None = None,
435
434
  extra_query: Query | None = None,
436
435
  extra_body: Body | None = None,
437
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
436
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
438
437
  ) -> InferenceModel:
439
438
  """
440
439
  Create Model
@@ -458,16 +457,16 @@ class AsyncModelsResource(AsyncAPIResource):
458
457
  *,
459
458
  name: str,
460
459
  vendor_configuration: model_create_params.LlmEngineModelCreateRequestVendorConfiguration,
461
- model_metadata: Dict[str, object] | NotGiven = NOT_GIVEN,
462
- model_type: Literal["chat_completion"] | NotGiven = NOT_GIVEN,
463
- model_vendor: Literal["llmengine"] | NotGiven = NOT_GIVEN,
464
- on_conflict: Literal["error", "update"] | NotGiven = NOT_GIVEN,
460
+ model_metadata: Dict[str, object] | Omit = omit,
461
+ model_type: Literal["chat_completion"] | Omit = omit,
462
+ model_vendor: Literal["llmengine"] | Omit = omit,
463
+ on_conflict: Literal["error", "update"] | Omit = omit,
465
464
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
466
465
  # The extra values given here take precedence over values defined on the client or passed to this method.
467
466
  extra_headers: Headers | None = None,
468
467
  extra_query: Query | None = None,
469
468
  extra_body: Body | None = None,
470
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
469
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
471
470
  ) -> InferenceModel:
472
471
  """
473
472
  Create Model
@@ -492,16 +491,16 @@ class AsyncModelsResource(AsyncAPIResource):
492
491
  name: str,
493
492
  vendor_configuration: model_create_params.LaunchModelCreateRequestVendorConfiguration
494
493
  | model_create_params.LlmEngineModelCreateRequestVendorConfiguration,
495
- model_metadata: Dict[str, object] | NotGiven = NOT_GIVEN,
496
- model_type: Literal["generic"] | Literal["chat_completion"] | NotGiven = NOT_GIVEN,
497
- model_vendor: Literal["launch"] | Literal["llmengine"] | NotGiven = NOT_GIVEN,
498
- on_conflict: Literal["error", "update"] | NotGiven = NOT_GIVEN,
494
+ model_metadata: Dict[str, object] | Omit = omit,
495
+ model_type: Literal["generic"] | Literal["chat_completion"] | Omit = omit,
496
+ model_vendor: Literal["launch"] | Literal["llmengine"] | Omit = omit,
497
+ on_conflict: Literal["error", "update"] | Omit = omit,
499
498
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
500
499
  # The extra values given here take precedence over values defined on the client or passed to this method.
501
500
  extra_headers: Headers | None = None,
502
501
  extra_query: Query | None = None,
503
502
  extra_body: Body | None = None,
504
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
503
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
505
504
  ) -> InferenceModel:
506
505
  return await self._post(
507
506
  "/v5/models",
@@ -531,7 +530,7 @@ class AsyncModelsResource(AsyncAPIResource):
531
530
  extra_headers: Headers | None = None,
532
531
  extra_query: Query | None = None,
533
532
  extra_body: Body | None = None,
534
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
533
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
535
534
  ) -> InferenceModel:
536
535
  """
537
536
  Get Model
@@ -560,13 +559,13 @@ class AsyncModelsResource(AsyncAPIResource):
560
559
  self,
561
560
  model_id: str,
562
561
  *,
563
- model_metadata: Dict[str, object] | NotGiven = NOT_GIVEN,
562
+ model_metadata: Dict[str, object] | Omit = omit,
564
563
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
565
564
  # The extra values given here take precedence over values defined on the client or passed to this method.
566
565
  extra_headers: Headers | None = None,
567
566
  extra_query: Query | None = None,
568
567
  extra_body: Body | None = None,
569
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
568
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
570
569
  ) -> InferenceModel:
571
570
  """
572
571
  Update Model
@@ -588,13 +587,13 @@ class AsyncModelsResource(AsyncAPIResource):
588
587
  model_id: str,
589
588
  *,
590
589
  vendor_configuration: model_update_params.ModelConfigurationPatchRequestVendorConfiguration,
591
- model_metadata: Dict[str, object] | NotGiven = NOT_GIVEN,
590
+ model_metadata: Dict[str, object] | Omit = omit,
592
591
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
593
592
  # The extra values given here take precedence over values defined on the client or passed to this method.
594
593
  extra_headers: Headers | None = None,
595
594
  extra_query: Query | None = None,
596
595
  extra_body: Body | None = None,
597
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
596
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
598
597
  ) -> InferenceModel:
599
598
  """
600
599
  Update Model
@@ -616,13 +615,13 @@ class AsyncModelsResource(AsyncAPIResource):
616
615
  model_id: str,
617
616
  *,
618
617
  name: str,
619
- on_conflict: Literal["error", "swap"] | NotGiven = NOT_GIVEN,
618
+ on_conflict: Literal["error", "swap"] | Omit = omit,
620
619
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
621
620
  # The extra values given here take precedence over values defined on the client or passed to this method.
622
621
  extra_headers: Headers | None = None,
623
622
  extra_query: Query | None = None,
624
623
  extra_body: Body | None = None,
625
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
624
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
626
625
  ) -> InferenceModel:
627
626
  """
628
627
  Update Model
@@ -642,17 +641,16 @@ class AsyncModelsResource(AsyncAPIResource):
642
641
  self,
643
642
  model_id: str,
644
643
  *,
645
- model_metadata: Dict[str, object] | NotGiven = NOT_GIVEN,
646
- vendor_configuration: model_update_params.ModelConfigurationPatchRequestVendorConfiguration
647
- | NotGiven = NOT_GIVEN,
648
- name: str | NotGiven = NOT_GIVEN,
649
- on_conflict: Literal["error", "swap"] | NotGiven = NOT_GIVEN,
644
+ model_metadata: Dict[str, object] | Omit = omit,
645
+ vendor_configuration: model_update_params.ModelConfigurationPatchRequestVendorConfiguration | Omit = omit,
646
+ name: str | Omit = omit,
647
+ on_conflict: Literal["error", "swap"] | Omit = omit,
650
648
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
651
649
  # The extra values given here take precedence over values defined on the client or passed to this method.
652
650
  extra_headers: Headers | None = None,
653
651
  extra_query: Query | None = None,
654
652
  extra_body: Body | None = None,
655
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
653
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
656
654
  ) -> InferenceModel:
657
655
  if not model_id:
658
656
  raise ValueError(f"Expected a non-empty value for `model_id` but received {model_id!r}")
@@ -676,8 +674,8 @@ class AsyncModelsResource(AsyncAPIResource):
676
674
  def list(
677
675
  self,
678
676
  *,
679
- ending_before: str | NotGiven = NOT_GIVEN,
680
- limit: int | NotGiven = NOT_GIVEN,
677
+ ending_before: str | Omit = omit,
678
+ limit: int | Omit = omit,
681
679
  model_vendor: Literal[
682
680
  "openai",
683
681
  "cohere",
@@ -692,16 +690,16 @@ class AsyncModelsResource(AsyncAPIResource):
692
690
  "xai",
693
691
  "fireworks_ai",
694
692
  ]
695
- | NotGiven = NOT_GIVEN,
696
- name: str | NotGiven = NOT_GIVEN,
697
- sort_order: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
698
- starting_after: str | NotGiven = NOT_GIVEN,
693
+ | Omit = omit,
694
+ name: str | Omit = omit,
695
+ sort_order: Literal["asc", "desc"] | Omit = omit,
696
+ starting_after: str | Omit = omit,
699
697
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
700
698
  # The extra values given here take precedence over values defined on the client or passed to this method.
701
699
  extra_headers: Headers | None = None,
702
700
  extra_query: Query | None = None,
703
701
  extra_body: Body | None = None,
704
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
702
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
705
703
  ) -> AsyncPaginator[InferenceModel, AsyncCursorPage[InferenceModel]]:
706
704
  """
707
705
  List Models
@@ -747,7 +745,7 @@ class AsyncModelsResource(AsyncAPIResource):
747
745
  extra_headers: Headers | None = None,
748
746
  extra_query: Query | None = None,
749
747
  extra_body: Body | None = None,
750
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
748
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
751
749
  ) -> ModelDeleteResponse:
752
750
  """
753
751
  Delete Model