orq-ai-sdk 4.2.7__py3-none-any.whl → 4.2.9__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.
- orq_ai_sdk/_version.py +2 -2
- orq_ai_sdk/completions.py +107 -1
- orq_ai_sdk/edits.py +107 -1
- orq_ai_sdk/embeddings.py +107 -1
- orq_ai_sdk/generations.py +99 -1
- orq_ai_sdk/models/__init__.py +405 -0
- orq_ai_sdk/models/conversationresponse.py +1 -1
- orq_ai_sdk/models/conversationwithmessagesresponse.py +1 -1
- orq_ai_sdk/models/createagentrequestop.py +24 -0
- orq_ai_sdk/models/createchatcompletionop.py +6 -0
- orq_ai_sdk/models/createcompletionop.py +218 -30
- orq_ai_sdk/models/createcontactop.py +1 -1
- orq_ai_sdk/models/createconversationop.py +1 -1
- orq_ai_sdk/models/createconversationresponseop.py +2 -2
- orq_ai_sdk/models/createdatasetitemop.py +4 -4
- orq_ai_sdk/models/createdatasetop.py +1 -1
- orq_ai_sdk/models/createdatasourceop.py +1 -1
- orq_ai_sdk/models/createembeddingop.py +221 -26
- orq_ai_sdk/models/createevalop.py +14 -14
- orq_ai_sdk/models/createidentityop.py +1 -1
- orq_ai_sdk/models/createimageeditop.py +242 -31
- orq_ai_sdk/models/createimageop.py +210 -22
- orq_ai_sdk/models/createimagevariationop.py +251 -31
- orq_ai_sdk/models/createpromptop.py +12 -0
- orq_ai_sdk/models/creatererankop.py +218 -26
- orq_ai_sdk/models/createspeechop.py +174 -24
- orq_ai_sdk/models/createtoolop.py +6 -6
- orq_ai_sdk/models/createtranscriptionop.py +180 -10
- orq_ai_sdk/models/createtranslationop.py +172 -10
- orq_ai_sdk/models/filegetop.py +1 -1
- orq_ai_sdk/models/filelistop.py +1 -1
- orq_ai_sdk/models/fileuploadop.py +1 -1
- orq_ai_sdk/models/generateconversationnameop.py +1 -1
- orq_ai_sdk/models/getallpromptsop.py +6 -0
- orq_ai_sdk/models/getalltoolsop.py +6 -6
- orq_ai_sdk/models/getevalsop.py +14 -14
- orq_ai_sdk/models/getonepromptop.py +6 -0
- orq_ai_sdk/models/getpromptversionop.py +6 -0
- orq_ai_sdk/models/listagentsop.py +12 -0
- orq_ai_sdk/models/listdatasetdatapointsop.py +4 -4
- orq_ai_sdk/models/listdatasetsop.py +1 -1
- orq_ai_sdk/models/listdatasourcesop.py +1 -1
- orq_ai_sdk/models/listidentitiesop.py +1 -1
- orq_ai_sdk/models/listpromptversionsop.py +6 -0
- orq_ai_sdk/models/partdoneevent.py +1 -1
- orq_ai_sdk/models/reasoningpart.py +1 -1
- orq_ai_sdk/models/retrieveagentrequestop.py +12 -0
- orq_ai_sdk/models/retrievedatapointop.py +4 -4
- orq_ai_sdk/models/retrievedatasetop.py +1 -1
- orq_ai_sdk/models/retrievedatasourceop.py +1 -1
- orq_ai_sdk/models/retrieveidentityop.py +1 -1
- orq_ai_sdk/models/retrievetoolop.py +6 -6
- orq_ai_sdk/models/runagentop.py +13 -1
- orq_ai_sdk/models/streamrunagentop.py +13 -1
- orq_ai_sdk/models/updateagentop.py +24 -0
- orq_ai_sdk/models/updateconversationop.py +1 -1
- orq_ai_sdk/models/updatedatapointop.py +4 -4
- orq_ai_sdk/models/updatedatasetop.py +1 -1
- orq_ai_sdk/models/updatedatasourceop.py +1 -1
- orq_ai_sdk/models/updateevalop.py +14 -14
- orq_ai_sdk/models/updateidentityop.py +1 -1
- orq_ai_sdk/models/updatepromptop.py +12 -0
- orq_ai_sdk/models/updatetoolop.py +7 -7
- orq_ai_sdk/orq_completions.py +6 -0
- orq_ai_sdk/rerank.py +98 -0
- orq_ai_sdk/speech.py +83 -1
- orq_ai_sdk/transcriptions.py +90 -0
- orq_ai_sdk/translations.py +87 -1
- orq_ai_sdk/variations.py +111 -1
- {orq_ai_sdk-4.2.7.dist-info → orq_ai_sdk-4.2.9.dist-info}/METADATA +1 -1
- {orq_ai_sdk-4.2.7.dist-info → orq_ai_sdk-4.2.9.dist-info}/RECORD +73 -73
- {orq_ai_sdk-4.2.7.dist-info → orq_ai_sdk-4.2.9.dist-info}/WHEEL +1 -1
- {orq_ai_sdk-4.2.7.dist-info → orq_ai_sdk-4.2.9.dist-info}/top_level.txt +0 -0
|
@@ -37,6 +37,41 @@ class CreateEmbeddingFallbacks(BaseModel):
|
|
|
37
37
|
r"""Fallback model identifier"""
|
|
38
38
|
|
|
39
39
|
|
|
40
|
+
class CreateEmbeddingRetryTypedDict(TypedDict):
|
|
41
|
+
r"""Retry configuration for the request"""
|
|
42
|
+
|
|
43
|
+
count: NotRequired[float]
|
|
44
|
+
r"""Number of retry attempts (1-5)"""
|
|
45
|
+
on_codes: NotRequired[List[float]]
|
|
46
|
+
r"""HTTP status codes that trigger retry logic"""
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class CreateEmbeddingRetry(BaseModel):
|
|
50
|
+
r"""Retry configuration for the request"""
|
|
51
|
+
|
|
52
|
+
count: Optional[float] = 3
|
|
53
|
+
r"""Number of retry attempts (1-5)"""
|
|
54
|
+
|
|
55
|
+
on_codes: Optional[List[float]] = None
|
|
56
|
+
r"""HTTP status codes that trigger retry logic"""
|
|
57
|
+
|
|
58
|
+
@model_serializer(mode="wrap")
|
|
59
|
+
def serialize_model(self, handler):
|
|
60
|
+
optional_fields = set(["count", "on_codes"])
|
|
61
|
+
serialized = handler(self)
|
|
62
|
+
m = {}
|
|
63
|
+
|
|
64
|
+
for n, f in type(self).model_fields.items():
|
|
65
|
+
k = f.alias or n
|
|
66
|
+
val = serialized.get(k)
|
|
67
|
+
|
|
68
|
+
if val != UNSET_SENTINEL:
|
|
69
|
+
if val is not None or k not in optional_fields:
|
|
70
|
+
m[k] = val
|
|
71
|
+
|
|
72
|
+
return m
|
|
73
|
+
|
|
74
|
+
|
|
40
75
|
CreateEmbeddingType = Literal["exact_match",]
|
|
41
76
|
|
|
42
77
|
|
|
@@ -73,7 +108,120 @@ class CreateEmbeddingCache(BaseModel):
|
|
|
73
108
|
return m
|
|
74
109
|
|
|
75
110
|
|
|
76
|
-
|
|
111
|
+
CreateEmbeddingLoadBalancerType = Literal["weight_based",]
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
class CreateEmbeddingLoadBalancerModelsTypedDict(TypedDict):
|
|
115
|
+
model: str
|
|
116
|
+
r"""Model identifier for load balancing"""
|
|
117
|
+
weight: NotRequired[float]
|
|
118
|
+
r"""Weight assigned to this model for load balancing"""
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
class CreateEmbeddingLoadBalancerModels(BaseModel):
|
|
122
|
+
model: str
|
|
123
|
+
r"""Model identifier for load balancing"""
|
|
124
|
+
|
|
125
|
+
weight: Optional[float] = 0.5
|
|
126
|
+
r"""Weight assigned to this model for load balancing"""
|
|
127
|
+
|
|
128
|
+
@model_serializer(mode="wrap")
|
|
129
|
+
def serialize_model(self, handler):
|
|
130
|
+
optional_fields = set(["weight"])
|
|
131
|
+
serialized = handler(self)
|
|
132
|
+
m = {}
|
|
133
|
+
|
|
134
|
+
for n, f in type(self).model_fields.items():
|
|
135
|
+
k = f.alias or n
|
|
136
|
+
val = serialized.get(k)
|
|
137
|
+
|
|
138
|
+
if val != UNSET_SENTINEL:
|
|
139
|
+
if val is not None or k not in optional_fields:
|
|
140
|
+
m[k] = val
|
|
141
|
+
|
|
142
|
+
return m
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
class CreateEmbeddingLoadBalancer1TypedDict(TypedDict):
|
|
146
|
+
type: CreateEmbeddingLoadBalancerType
|
|
147
|
+
models: List[CreateEmbeddingLoadBalancerModelsTypedDict]
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
class CreateEmbeddingLoadBalancer1(BaseModel):
|
|
151
|
+
type: CreateEmbeddingLoadBalancerType
|
|
152
|
+
|
|
153
|
+
models: List[CreateEmbeddingLoadBalancerModels]
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
CreateEmbeddingLoadBalancerTypedDict = CreateEmbeddingLoadBalancer1TypedDict
|
|
157
|
+
r"""Load balancer configuration for the request."""
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
CreateEmbeddingLoadBalancer = CreateEmbeddingLoadBalancer1
|
|
161
|
+
r"""Load balancer configuration for the request."""
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
class CreateEmbeddingTimeoutTypedDict(TypedDict):
|
|
165
|
+
r"""Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured."""
|
|
166
|
+
|
|
167
|
+
call_timeout: float
|
|
168
|
+
r"""Timeout value in milliseconds"""
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
class CreateEmbeddingTimeout(BaseModel):
|
|
172
|
+
r"""Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured."""
|
|
173
|
+
|
|
174
|
+
call_timeout: float
|
|
175
|
+
r"""Timeout value in milliseconds"""
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
class CreateEmbeddingRouterEmbeddingsFallbacksTypedDict(TypedDict):
|
|
179
|
+
model: str
|
|
180
|
+
r"""Fallback model identifier"""
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
class CreateEmbeddingRouterEmbeddingsFallbacks(BaseModel):
|
|
184
|
+
model: str
|
|
185
|
+
r"""Fallback model identifier"""
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
CreateEmbeddingRouterEmbeddingsType = Literal["exact_match",]
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
class CreateEmbeddingRouterEmbeddingsCacheTypedDict(TypedDict):
|
|
192
|
+
r"""Cache configuration for the request."""
|
|
193
|
+
|
|
194
|
+
type: CreateEmbeddingRouterEmbeddingsType
|
|
195
|
+
ttl: NotRequired[float]
|
|
196
|
+
r"""Time to live for cached responses in seconds. Maximum 259200 seconds (3 days)."""
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
class CreateEmbeddingRouterEmbeddingsCache(BaseModel):
|
|
200
|
+
r"""Cache configuration for the request."""
|
|
201
|
+
|
|
202
|
+
type: CreateEmbeddingRouterEmbeddingsType
|
|
203
|
+
|
|
204
|
+
ttl: Optional[float] = 1800
|
|
205
|
+
r"""Time to live for cached responses in seconds. Maximum 259200 seconds (3 days)."""
|
|
206
|
+
|
|
207
|
+
@model_serializer(mode="wrap")
|
|
208
|
+
def serialize_model(self, handler):
|
|
209
|
+
optional_fields = set(["ttl"])
|
|
210
|
+
serialized = handler(self)
|
|
211
|
+
m = {}
|
|
212
|
+
|
|
213
|
+
for n, f in type(self).model_fields.items():
|
|
214
|
+
k = f.alias or n
|
|
215
|
+
val = serialized.get(k)
|
|
216
|
+
|
|
217
|
+
if val != UNSET_SENTINEL:
|
|
218
|
+
if val is not None or k not in optional_fields:
|
|
219
|
+
m[k] = val
|
|
220
|
+
|
|
221
|
+
return m
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
class CreateEmbeddingRouterEmbeddingsRetryTypedDict(TypedDict):
|
|
77
225
|
r"""Retry configuration for the request"""
|
|
78
226
|
|
|
79
227
|
count: NotRequired[float]
|
|
@@ -82,7 +230,7 @@ class CreateEmbeddingRetryTypedDict(TypedDict):
|
|
|
82
230
|
r"""HTTP status codes that trigger retry logic"""
|
|
83
231
|
|
|
84
232
|
|
|
85
|
-
class
|
|
233
|
+
class CreateEmbeddingRouterEmbeddingsRetry(BaseModel):
|
|
86
234
|
r"""Retry configuration for the request"""
|
|
87
235
|
|
|
88
236
|
count: Optional[float] = 3
|
|
@@ -108,17 +256,17 @@ class CreateEmbeddingRetry(BaseModel):
|
|
|
108
256
|
return m
|
|
109
257
|
|
|
110
258
|
|
|
111
|
-
|
|
259
|
+
CreateEmbeddingLoadBalancerRouterEmbeddingsType = Literal["weight_based",]
|
|
112
260
|
|
|
113
261
|
|
|
114
|
-
class
|
|
262
|
+
class CreateEmbeddingLoadBalancerRouterEmbeddingsModelsTypedDict(TypedDict):
|
|
115
263
|
model: str
|
|
116
264
|
r"""Model identifier for load balancing"""
|
|
117
265
|
weight: NotRequired[float]
|
|
118
266
|
r"""Weight assigned to this model for load balancing"""
|
|
119
267
|
|
|
120
268
|
|
|
121
|
-
class
|
|
269
|
+
class CreateEmbeddingLoadBalancerRouterEmbeddingsModels(BaseModel):
|
|
122
270
|
model: str
|
|
123
271
|
r"""Model identifier for load balancing"""
|
|
124
272
|
|
|
@@ -142,33 +290,37 @@ class CreateEmbeddingLoadBalancerModels(BaseModel):
|
|
|
142
290
|
return m
|
|
143
291
|
|
|
144
292
|
|
|
145
|
-
class
|
|
146
|
-
type:
|
|
147
|
-
models: List[
|
|
293
|
+
class CreateEmbeddingLoadBalancerRouterEmbeddings1TypedDict(TypedDict):
|
|
294
|
+
type: CreateEmbeddingLoadBalancerRouterEmbeddingsType
|
|
295
|
+
models: List[CreateEmbeddingLoadBalancerRouterEmbeddingsModelsTypedDict]
|
|
148
296
|
|
|
149
297
|
|
|
150
|
-
class
|
|
151
|
-
type:
|
|
298
|
+
class CreateEmbeddingLoadBalancerRouterEmbeddings1(BaseModel):
|
|
299
|
+
type: CreateEmbeddingLoadBalancerRouterEmbeddingsType
|
|
152
300
|
|
|
153
|
-
models: List[
|
|
301
|
+
models: List[CreateEmbeddingLoadBalancerRouterEmbeddingsModels]
|
|
154
302
|
|
|
155
303
|
|
|
156
|
-
|
|
304
|
+
CreateEmbeddingRouterEmbeddingsLoadBalancerTypedDict = (
|
|
305
|
+
CreateEmbeddingLoadBalancerRouterEmbeddings1TypedDict
|
|
306
|
+
)
|
|
157
307
|
r"""Array of models with weights for load balancing requests"""
|
|
158
308
|
|
|
159
309
|
|
|
160
|
-
|
|
310
|
+
CreateEmbeddingRouterEmbeddingsLoadBalancer = (
|
|
311
|
+
CreateEmbeddingLoadBalancerRouterEmbeddings1
|
|
312
|
+
)
|
|
161
313
|
r"""Array of models with weights for load balancing requests"""
|
|
162
314
|
|
|
163
315
|
|
|
164
|
-
class
|
|
316
|
+
class CreateEmbeddingRouterEmbeddingsTimeoutTypedDict(TypedDict):
|
|
165
317
|
r"""Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured."""
|
|
166
318
|
|
|
167
319
|
call_timeout: float
|
|
168
320
|
r"""Timeout value in milliseconds"""
|
|
169
321
|
|
|
170
322
|
|
|
171
|
-
class
|
|
323
|
+
class CreateEmbeddingRouterEmbeddingsTimeout(BaseModel):
|
|
172
324
|
r"""Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured."""
|
|
173
325
|
|
|
174
326
|
call_timeout: float
|
|
@@ -178,19 +330,19 @@ class CreateEmbeddingTimeout(BaseModel):
|
|
|
178
330
|
class CreateEmbeddingOrqTypedDict(TypedDict):
|
|
179
331
|
name: NotRequired[str]
|
|
180
332
|
r"""The name to display on the trace. If not specified, the default system name will be used."""
|
|
181
|
-
fallbacks: NotRequired[List[
|
|
333
|
+
fallbacks: NotRequired[List[CreateEmbeddingRouterEmbeddingsFallbacksTypedDict]]
|
|
182
334
|
r"""Array of fallback models to use if primary model fails"""
|
|
183
|
-
cache: NotRequired[
|
|
335
|
+
cache: NotRequired[CreateEmbeddingRouterEmbeddingsCacheTypedDict]
|
|
184
336
|
r"""Cache configuration for the request."""
|
|
185
|
-
retry: NotRequired[
|
|
337
|
+
retry: NotRequired[CreateEmbeddingRouterEmbeddingsRetryTypedDict]
|
|
186
338
|
r"""Retry configuration for the request"""
|
|
187
339
|
identity: NotRequired[PublicIdentityTypedDict]
|
|
188
340
|
r"""Information about the identity making the request. If the identity does not exist, it will be created automatically."""
|
|
189
341
|
contact: NotRequired[PublicContactTypedDict]
|
|
190
342
|
r"""@deprecated Use identity instead. Information about the contact making the request."""
|
|
191
|
-
load_balancer: NotRequired[
|
|
343
|
+
load_balancer: NotRequired[CreateEmbeddingRouterEmbeddingsLoadBalancerTypedDict]
|
|
192
344
|
r"""Array of models with weights for load balancing requests"""
|
|
193
|
-
timeout: NotRequired[
|
|
345
|
+
timeout: NotRequired[CreateEmbeddingRouterEmbeddingsTimeoutTypedDict]
|
|
194
346
|
r"""Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured."""
|
|
195
347
|
|
|
196
348
|
|
|
@@ -198,13 +350,13 @@ class CreateEmbeddingOrq(BaseModel):
|
|
|
198
350
|
name: Optional[str] = None
|
|
199
351
|
r"""The name to display on the trace. If not specified, the default system name will be used."""
|
|
200
352
|
|
|
201
|
-
fallbacks: Optional[List[
|
|
353
|
+
fallbacks: Optional[List[CreateEmbeddingRouterEmbeddingsFallbacks]] = None
|
|
202
354
|
r"""Array of fallback models to use if primary model fails"""
|
|
203
355
|
|
|
204
|
-
cache: Optional[
|
|
356
|
+
cache: Optional[CreateEmbeddingRouterEmbeddingsCache] = None
|
|
205
357
|
r"""Cache configuration for the request."""
|
|
206
358
|
|
|
207
|
-
retry: Optional[
|
|
359
|
+
retry: Optional[CreateEmbeddingRouterEmbeddingsRetry] = None
|
|
208
360
|
r"""Retry configuration for the request"""
|
|
209
361
|
|
|
210
362
|
identity: Optional[PublicIdentity] = None
|
|
@@ -218,10 +370,10 @@ class CreateEmbeddingOrq(BaseModel):
|
|
|
218
370
|
] = None
|
|
219
371
|
r"""@deprecated Use identity instead. Information about the contact making the request."""
|
|
220
372
|
|
|
221
|
-
load_balancer: Optional[
|
|
373
|
+
load_balancer: Optional[CreateEmbeddingRouterEmbeddingsLoadBalancer] = None
|
|
222
374
|
r"""Array of models with weights for load balancing requests"""
|
|
223
375
|
|
|
224
|
-
timeout: Optional[
|
|
376
|
+
timeout: Optional[CreateEmbeddingRouterEmbeddingsTimeout] = None
|
|
225
377
|
r"""Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured."""
|
|
226
378
|
|
|
227
379
|
@model_serializer(mode="wrap")
|
|
@@ -265,6 +417,18 @@ class CreateEmbeddingRequestBodyTypedDict(TypedDict):
|
|
|
265
417
|
r"""The number of dimensions the resulting output embeddings should have."""
|
|
266
418
|
user: NotRequired[str]
|
|
267
419
|
r"""A unique identifier representing your end-user"""
|
|
420
|
+
name: NotRequired[str]
|
|
421
|
+
r"""The name to display on the trace. If not specified, the default system name will be used."""
|
|
422
|
+
fallbacks: NotRequired[List[CreateEmbeddingFallbacksTypedDict]]
|
|
423
|
+
r"""Array of fallback models to use if primary model fails"""
|
|
424
|
+
retry: NotRequired[CreateEmbeddingRetryTypedDict]
|
|
425
|
+
r"""Retry configuration for the request"""
|
|
426
|
+
cache: NotRequired[CreateEmbeddingCacheTypedDict]
|
|
427
|
+
r"""Cache configuration for the request."""
|
|
428
|
+
load_balancer: NotRequired[CreateEmbeddingLoadBalancerTypedDict]
|
|
429
|
+
r"""Load balancer configuration for the request."""
|
|
430
|
+
timeout: NotRequired[CreateEmbeddingTimeoutTypedDict]
|
|
431
|
+
r"""Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured."""
|
|
268
432
|
orq: NotRequired[CreateEmbeddingOrqTypedDict]
|
|
269
433
|
|
|
270
434
|
|
|
@@ -286,11 +450,42 @@ class CreateEmbeddingRequestBody(BaseModel):
|
|
|
286
450
|
user: Optional[str] = None
|
|
287
451
|
r"""A unique identifier representing your end-user"""
|
|
288
452
|
|
|
453
|
+
name: Optional[str] = None
|
|
454
|
+
r"""The name to display on the trace. If not specified, the default system name will be used."""
|
|
455
|
+
|
|
456
|
+
fallbacks: Optional[List[CreateEmbeddingFallbacks]] = None
|
|
457
|
+
r"""Array of fallback models to use if primary model fails"""
|
|
458
|
+
|
|
459
|
+
retry: Optional[CreateEmbeddingRetry] = None
|
|
460
|
+
r"""Retry configuration for the request"""
|
|
461
|
+
|
|
462
|
+
cache: Optional[CreateEmbeddingCache] = None
|
|
463
|
+
r"""Cache configuration for the request."""
|
|
464
|
+
|
|
465
|
+
load_balancer: Optional[CreateEmbeddingLoadBalancer] = None
|
|
466
|
+
r"""Load balancer configuration for the request."""
|
|
467
|
+
|
|
468
|
+
timeout: Optional[CreateEmbeddingTimeout] = None
|
|
469
|
+
r"""Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured."""
|
|
470
|
+
|
|
289
471
|
orq: Optional[CreateEmbeddingOrq] = None
|
|
290
472
|
|
|
291
473
|
@model_serializer(mode="wrap")
|
|
292
474
|
def serialize_model(self, handler):
|
|
293
|
-
optional_fields = set(
|
|
475
|
+
optional_fields = set(
|
|
476
|
+
[
|
|
477
|
+
"encoding_format",
|
|
478
|
+
"dimensions",
|
|
479
|
+
"user",
|
|
480
|
+
"name",
|
|
481
|
+
"fallbacks",
|
|
482
|
+
"retry",
|
|
483
|
+
"cache",
|
|
484
|
+
"load_balancer",
|
|
485
|
+
"timeout",
|
|
486
|
+
"orq",
|
|
487
|
+
]
|
|
488
|
+
)
|
|
294
489
|
serialized = handler(self)
|
|
295
490
|
m = {}
|
|
296
491
|
|
|
@@ -884,9 +884,9 @@ class Typescript(BaseModel):
|
|
|
884
884
|
|
|
885
885
|
key: str
|
|
886
886
|
|
|
887
|
-
created: Optional[str] = "2026-01-
|
|
887
|
+
created: Optional[str] = "2026-01-25T22:42:53.396Z"
|
|
888
888
|
|
|
889
|
-
updated: Optional[str] = "2026-01-
|
|
889
|
+
updated: Optional[str] = "2026-01-25T22:42:53.396Z"
|
|
890
890
|
|
|
891
891
|
guardrail_config: Optional[
|
|
892
892
|
CreateEvalResponseBodyEvalsResponse200ApplicationJSON7GuardrailConfig
|
|
@@ -1080,9 +1080,9 @@ class Ragas(BaseModel):
|
|
|
1080
1080
|
|
|
1081
1081
|
model: str
|
|
1082
1082
|
|
|
1083
|
-
created: Optional[str] = "2026-01-
|
|
1083
|
+
created: Optional[str] = "2026-01-25T22:42:53.396Z"
|
|
1084
1084
|
|
|
1085
|
-
updated: Optional[str] = "2026-01-
|
|
1085
|
+
updated: Optional[str] = "2026-01-25T22:42:53.396Z"
|
|
1086
1086
|
|
|
1087
1087
|
guardrail_config: Optional[
|
|
1088
1088
|
CreateEvalResponseBodyEvalsResponse200ApplicationJSONGuardrailConfig
|
|
@@ -1775,9 +1775,9 @@ class CreateEvalResponseBodyFunction(BaseModel):
|
|
|
1775
1775
|
|
|
1776
1776
|
key: str
|
|
1777
1777
|
|
|
1778
|
-
created: Optional[str] = "2026-01-
|
|
1778
|
+
created: Optional[str] = "2026-01-25T22:42:53.396Z"
|
|
1779
1779
|
|
|
1780
|
-
updated: Optional[str] = "2026-01-
|
|
1780
|
+
updated: Optional[str] = "2026-01-25T22:42:53.396Z"
|
|
1781
1781
|
|
|
1782
1782
|
guardrail_config: Optional[
|
|
1783
1783
|
CreateEvalResponseBodyEvalsResponse200GuardrailConfig
|
|
@@ -1952,9 +1952,9 @@ class ResponseBodyPython(BaseModel):
|
|
|
1952
1952
|
|
|
1953
1953
|
key: str
|
|
1954
1954
|
|
|
1955
|
-
created: Optional[str] = "2026-01-
|
|
1955
|
+
created: Optional[str] = "2026-01-25T22:42:53.396Z"
|
|
1956
1956
|
|
|
1957
|
-
updated: Optional[str] = "2026-01-
|
|
1957
|
+
updated: Optional[str] = "2026-01-25T22:42:53.396Z"
|
|
1958
1958
|
|
|
1959
1959
|
guardrail_config: Optional[CreateEvalResponseBodyEvalsResponseGuardrailConfig] = (
|
|
1960
1960
|
None
|
|
@@ -2134,9 +2134,9 @@ class ResponseBodyHTTP(BaseModel):
|
|
|
2134
2134
|
|
|
2135
2135
|
key: str
|
|
2136
2136
|
|
|
2137
|
-
created: Optional[str] = "2026-01-
|
|
2137
|
+
created: Optional[str] = "2026-01-25T22:42:53.396Z"
|
|
2138
2138
|
|
|
2139
|
-
updated: Optional[str] = "2026-01-
|
|
2139
|
+
updated: Optional[str] = "2026-01-25T22:42:53.396Z"
|
|
2140
2140
|
|
|
2141
2141
|
guardrail_config: Optional[CreateEvalResponseBodyEvalsGuardrailConfig] = None
|
|
2142
2142
|
|
|
@@ -2287,9 +2287,9 @@ class ResponseBodyJSON(BaseModel):
|
|
|
2287
2287
|
|
|
2288
2288
|
key: str
|
|
2289
2289
|
|
|
2290
|
-
created: Optional[str] = "2026-01-
|
|
2290
|
+
created: Optional[str] = "2026-01-25T22:42:53.396Z"
|
|
2291
2291
|
|
|
2292
|
-
updated: Optional[str] = "2026-01-
|
|
2292
|
+
updated: Optional[str] = "2026-01-25T22:42:53.396Z"
|
|
2293
2293
|
|
|
2294
2294
|
guardrail_config: Optional[CreateEvalResponseBodyGuardrailConfig] = None
|
|
2295
2295
|
|
|
@@ -2441,9 +2441,9 @@ class ResponseBodyLLM(BaseModel):
|
|
|
2441
2441
|
|
|
2442
2442
|
model: str
|
|
2443
2443
|
|
|
2444
|
-
created: Optional[str] = "2026-01-
|
|
2444
|
+
created: Optional[str] = "2026-01-25T22:42:53.396Z"
|
|
2445
2445
|
|
|
2446
|
-
updated: Optional[str] = "2026-01-
|
|
2446
|
+
updated: Optional[str] = "2026-01-25T22:42:53.396Z"
|
|
2447
2447
|
|
|
2448
2448
|
guardrail_config: Optional[ResponseBodyGuardrailConfig] = None
|
|
2449
2449
|
|
|
@@ -137,7 +137,7 @@ class CreateIdentityResponseBody(BaseModel):
|
|
|
137
137
|
created: Optional[datetime] = None
|
|
138
138
|
r"""The date and time the resource was created"""
|
|
139
139
|
|
|
140
|
-
updated: Optional[datetime] = parse_datetime("2026-01-
|
|
140
|
+
updated: Optional[datetime] = parse_datetime("2026-01-25T22:42:51.693Z")
|
|
141
141
|
r"""The date and time the resource was last updated"""
|
|
142
142
|
|
|
143
143
|
@model_serializer(mode="wrap")
|