sarvamai 0.1.23a2__py3-none-any.whl → 0.1.23a4__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.
- sarvamai/__init__.py +203 -405
- sarvamai/chat/raw_client.py +20 -20
- sarvamai/client.py +34 -186
- sarvamai/core/__init__.py +21 -76
- sarvamai/core/client_wrapper.py +3 -19
- sarvamai/core/force_multipart.py +2 -4
- sarvamai/core/http_client.py +97 -217
- sarvamai/core/http_response.py +1 -1
- sarvamai/core/jsonable_encoder.py +0 -8
- sarvamai/core/pydantic_utilities.py +4 -110
- sarvamai/errors/__init__.py +6 -40
- sarvamai/errors/bad_request_error.py +1 -1
- sarvamai/errors/forbidden_error.py +1 -1
- sarvamai/errors/internal_server_error.py +1 -1
- sarvamai/errors/service_unavailable_error.py +1 -1
- sarvamai/errors/too_many_requests_error.py +1 -1
- sarvamai/errors/unprocessable_entity_error.py +1 -1
- sarvamai/requests/__init__.py +62 -150
- sarvamai/requests/configure_connection.py +4 -0
- sarvamai/requests/configure_connection_data.py +40 -11
- sarvamai/requests/error_response_data.py +1 -1
- sarvamai/requests/file_signed_url_details.py +1 -1
- sarvamai/requests/speech_to_text_job_parameters.py +10 -1
- sarvamai/requests/speech_to_text_transcription_data.py +2 -2
- sarvamai/speech_to_text/client.py +29 -2
- sarvamai/speech_to_text/raw_client.py +81 -56
- sarvamai/speech_to_text_job/client.py +60 -15
- sarvamai/speech_to_text_job/raw_client.py +120 -120
- sarvamai/speech_to_text_streaming/__init__.py +10 -38
- sarvamai/speech_to_text_streaming/client.py +32 -6
- sarvamai/speech_to_text_streaming/raw_client.py +32 -6
- sarvamai/speech_to_text_streaming/types/__init__.py +8 -36
- sarvamai/speech_to_text_streaming/types/speech_to_text_streaming_mode.py +7 -0
- sarvamai/speech_to_text_streaming/types/speech_to_text_streaming_model.py +5 -0
- sarvamai/speech_to_text_translate_job/raw_client.py +120 -120
- sarvamai/speech_to_text_translate_streaming/__init__.py +5 -36
- sarvamai/speech_to_text_translate_streaming/types/__init__.py +3 -36
- sarvamai/text/raw_client.py +60 -60
- sarvamai/text_to_speech/client.py +100 -16
- sarvamai/text_to_speech/raw_client.py +120 -36
- sarvamai/text_to_speech_streaming/__init__.py +2 -29
- sarvamai/text_to_speech_streaming/client.py +19 -6
- sarvamai/text_to_speech_streaming/raw_client.py +19 -6
- sarvamai/text_to_speech_streaming/types/__init__.py +3 -31
- sarvamai/text_to_speech_streaming/types/text_to_speech_streaming_model.py +5 -0
- sarvamai/types/__init__.py +102 -222
- sarvamai/types/chat_completion_request_message.py +2 -6
- sarvamai/types/configure_connection.py +4 -0
- sarvamai/types/configure_connection_data.py +40 -11
- sarvamai/types/configure_connection_data_model.py +5 -0
- sarvamai/types/configure_connection_data_speaker.py +35 -1
- sarvamai/types/error_response_data.py +1 -1
- sarvamai/types/file_signed_url_details.py +1 -1
- sarvamai/types/mode.py +7 -0
- sarvamai/types/speech_to_text_job_parameters.py +10 -1
- sarvamai/types/speech_to_text_model.py +3 -1
- sarvamai/types/speech_to_text_transcription_data.py +2 -2
- sarvamai/types/speech_to_text_translate_model.py +1 -1
- sarvamai/types/text_to_speech_model.py +1 -1
- sarvamai/types/text_to_speech_speaker.py +35 -1
- {sarvamai-0.1.23a2.dist-info → sarvamai-0.1.23a4.dist-info}/METADATA +1 -2
- {sarvamai-0.1.23a2.dist-info → sarvamai-0.1.23a4.dist-info}/RECORD +63 -63
- sarvamai/core/http_sse/__init__.py +0 -42
- sarvamai/core/http_sse/_api.py +0 -112
- sarvamai/core/http_sse/_decoders.py +0 -61
- sarvamai/core/http_sse/_exceptions.py +0 -7
- sarvamai/core/http_sse/_models.py +0 -17
- {sarvamai-0.1.23a2.dist-info → sarvamai-0.1.23a4.dist-info}/WHEEL +0 -0
|
@@ -89,9 +89,9 @@ class RawSpeechToTextJobClient:
|
|
|
89
89
|
raise BadRequestError(
|
|
90
90
|
headers=dict(_response.headers),
|
|
91
91
|
body=typing.cast(
|
|
92
|
-
typing.Any,
|
|
92
|
+
typing.Optional[typing.Any],
|
|
93
93
|
parse_obj_as(
|
|
94
|
-
type_=typing.Any, # type: ignore
|
|
94
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
95
95
|
object_=_response.json(),
|
|
96
96
|
),
|
|
97
97
|
),
|
|
@@ -100,9 +100,9 @@ class RawSpeechToTextJobClient:
|
|
|
100
100
|
raise ForbiddenError(
|
|
101
101
|
headers=dict(_response.headers),
|
|
102
102
|
body=typing.cast(
|
|
103
|
-
typing.Any,
|
|
103
|
+
typing.Optional[typing.Any],
|
|
104
104
|
parse_obj_as(
|
|
105
|
-
type_=typing.Any, # type: ignore
|
|
105
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
106
106
|
object_=_response.json(),
|
|
107
107
|
),
|
|
108
108
|
),
|
|
@@ -111,9 +111,9 @@ class RawSpeechToTextJobClient:
|
|
|
111
111
|
raise UnprocessableEntityError(
|
|
112
112
|
headers=dict(_response.headers),
|
|
113
113
|
body=typing.cast(
|
|
114
|
-
typing.Any,
|
|
114
|
+
typing.Optional[typing.Any],
|
|
115
115
|
parse_obj_as(
|
|
116
|
-
type_=typing.Any, # type: ignore
|
|
116
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
117
117
|
object_=_response.json(),
|
|
118
118
|
),
|
|
119
119
|
),
|
|
@@ -122,9 +122,9 @@ class RawSpeechToTextJobClient:
|
|
|
122
122
|
raise TooManyRequestsError(
|
|
123
123
|
headers=dict(_response.headers),
|
|
124
124
|
body=typing.cast(
|
|
125
|
-
typing.Any,
|
|
125
|
+
typing.Optional[typing.Any],
|
|
126
126
|
parse_obj_as(
|
|
127
|
-
type_=typing.Any, # type: ignore
|
|
127
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
128
128
|
object_=_response.json(),
|
|
129
129
|
),
|
|
130
130
|
),
|
|
@@ -133,9 +133,9 @@ class RawSpeechToTextJobClient:
|
|
|
133
133
|
raise InternalServerError(
|
|
134
134
|
headers=dict(_response.headers),
|
|
135
135
|
body=typing.cast(
|
|
136
|
-
typing.Any,
|
|
136
|
+
typing.Optional[typing.Any],
|
|
137
137
|
parse_obj_as(
|
|
138
|
-
type_=typing.Any, # type: ignore
|
|
138
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
139
139
|
object_=_response.json(),
|
|
140
140
|
),
|
|
141
141
|
),
|
|
@@ -144,9 +144,9 @@ class RawSpeechToTextJobClient:
|
|
|
144
144
|
raise ServiceUnavailableError(
|
|
145
145
|
headers=dict(_response.headers),
|
|
146
146
|
body=typing.cast(
|
|
147
|
-
typing.Any,
|
|
147
|
+
typing.Optional[typing.Any],
|
|
148
148
|
parse_obj_as(
|
|
149
|
-
type_=typing.Any, # type: ignore
|
|
149
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
150
150
|
object_=_response.json(),
|
|
151
151
|
),
|
|
152
152
|
),
|
|
@@ -197,9 +197,9 @@ class RawSpeechToTextJobClient:
|
|
|
197
197
|
raise BadRequestError(
|
|
198
198
|
headers=dict(_response.headers),
|
|
199
199
|
body=typing.cast(
|
|
200
|
-
typing.Any,
|
|
200
|
+
typing.Optional[typing.Any],
|
|
201
201
|
parse_obj_as(
|
|
202
|
-
type_=typing.Any, # type: ignore
|
|
202
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
203
203
|
object_=_response.json(),
|
|
204
204
|
),
|
|
205
205
|
),
|
|
@@ -208,9 +208,9 @@ class RawSpeechToTextJobClient:
|
|
|
208
208
|
raise ForbiddenError(
|
|
209
209
|
headers=dict(_response.headers),
|
|
210
210
|
body=typing.cast(
|
|
211
|
-
typing.Any,
|
|
211
|
+
typing.Optional[typing.Any],
|
|
212
212
|
parse_obj_as(
|
|
213
|
-
type_=typing.Any, # type: ignore
|
|
213
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
214
214
|
object_=_response.json(),
|
|
215
215
|
),
|
|
216
216
|
),
|
|
@@ -219,9 +219,9 @@ class RawSpeechToTextJobClient:
|
|
|
219
219
|
raise UnprocessableEntityError(
|
|
220
220
|
headers=dict(_response.headers),
|
|
221
221
|
body=typing.cast(
|
|
222
|
-
typing.Any,
|
|
222
|
+
typing.Optional[typing.Any],
|
|
223
223
|
parse_obj_as(
|
|
224
|
-
type_=typing.Any, # type: ignore
|
|
224
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
225
225
|
object_=_response.json(),
|
|
226
226
|
),
|
|
227
227
|
),
|
|
@@ -230,9 +230,9 @@ class RawSpeechToTextJobClient:
|
|
|
230
230
|
raise TooManyRequestsError(
|
|
231
231
|
headers=dict(_response.headers),
|
|
232
232
|
body=typing.cast(
|
|
233
|
-
typing.Any,
|
|
233
|
+
typing.Optional[typing.Any],
|
|
234
234
|
parse_obj_as(
|
|
235
|
-
type_=typing.Any, # type: ignore
|
|
235
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
236
236
|
object_=_response.json(),
|
|
237
237
|
),
|
|
238
238
|
),
|
|
@@ -241,9 +241,9 @@ class RawSpeechToTextJobClient:
|
|
|
241
241
|
raise InternalServerError(
|
|
242
242
|
headers=dict(_response.headers),
|
|
243
243
|
body=typing.cast(
|
|
244
|
-
typing.Any,
|
|
244
|
+
typing.Optional[typing.Any],
|
|
245
245
|
parse_obj_as(
|
|
246
|
-
type_=typing.Any, # type: ignore
|
|
246
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
247
247
|
object_=_response.json(),
|
|
248
248
|
),
|
|
249
249
|
),
|
|
@@ -252,9 +252,9 @@ class RawSpeechToTextJobClient:
|
|
|
252
252
|
raise ServiceUnavailableError(
|
|
253
253
|
headers=dict(_response.headers),
|
|
254
254
|
body=typing.cast(
|
|
255
|
-
typing.Any,
|
|
255
|
+
typing.Optional[typing.Any],
|
|
256
256
|
parse_obj_as(
|
|
257
|
-
type_=typing.Any, # type: ignore
|
|
257
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
258
258
|
object_=_response.json(),
|
|
259
259
|
),
|
|
260
260
|
),
|
|
@@ -312,9 +312,9 @@ class RawSpeechToTextJobClient:
|
|
|
312
312
|
raise BadRequestError(
|
|
313
313
|
headers=dict(_response.headers),
|
|
314
314
|
body=typing.cast(
|
|
315
|
-
typing.Any,
|
|
315
|
+
typing.Optional[typing.Any],
|
|
316
316
|
parse_obj_as(
|
|
317
|
-
type_=typing.Any, # type: ignore
|
|
317
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
318
318
|
object_=_response.json(),
|
|
319
319
|
),
|
|
320
320
|
),
|
|
@@ -323,9 +323,9 @@ class RawSpeechToTextJobClient:
|
|
|
323
323
|
raise ForbiddenError(
|
|
324
324
|
headers=dict(_response.headers),
|
|
325
325
|
body=typing.cast(
|
|
326
|
-
typing.Any,
|
|
326
|
+
typing.Optional[typing.Any],
|
|
327
327
|
parse_obj_as(
|
|
328
|
-
type_=typing.Any, # type: ignore
|
|
328
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
329
329
|
object_=_response.json(),
|
|
330
330
|
),
|
|
331
331
|
),
|
|
@@ -334,9 +334,9 @@ class RawSpeechToTextJobClient:
|
|
|
334
334
|
raise UnprocessableEntityError(
|
|
335
335
|
headers=dict(_response.headers),
|
|
336
336
|
body=typing.cast(
|
|
337
|
-
typing.Any,
|
|
337
|
+
typing.Optional[typing.Any],
|
|
338
338
|
parse_obj_as(
|
|
339
|
-
type_=typing.Any, # type: ignore
|
|
339
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
340
340
|
object_=_response.json(),
|
|
341
341
|
),
|
|
342
342
|
),
|
|
@@ -345,9 +345,9 @@ class RawSpeechToTextJobClient:
|
|
|
345
345
|
raise TooManyRequestsError(
|
|
346
346
|
headers=dict(_response.headers),
|
|
347
347
|
body=typing.cast(
|
|
348
|
-
typing.Any,
|
|
348
|
+
typing.Optional[typing.Any],
|
|
349
349
|
parse_obj_as(
|
|
350
|
-
type_=typing.Any, # type: ignore
|
|
350
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
351
351
|
object_=_response.json(),
|
|
352
352
|
),
|
|
353
353
|
),
|
|
@@ -356,9 +356,9 @@ class RawSpeechToTextJobClient:
|
|
|
356
356
|
raise InternalServerError(
|
|
357
357
|
headers=dict(_response.headers),
|
|
358
358
|
body=typing.cast(
|
|
359
|
-
typing.Any,
|
|
359
|
+
typing.Optional[typing.Any],
|
|
360
360
|
parse_obj_as(
|
|
361
|
-
type_=typing.Any, # type: ignore
|
|
361
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
362
362
|
object_=_response.json(),
|
|
363
363
|
),
|
|
364
364
|
),
|
|
@@ -367,9 +367,9 @@ class RawSpeechToTextJobClient:
|
|
|
367
367
|
raise ServiceUnavailableError(
|
|
368
368
|
headers=dict(_response.headers),
|
|
369
369
|
body=typing.cast(
|
|
370
|
-
typing.Any,
|
|
370
|
+
typing.Optional[typing.Any],
|
|
371
371
|
parse_obj_as(
|
|
372
|
-
type_=typing.Any, # type: ignore
|
|
372
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
373
373
|
object_=_response.json(),
|
|
374
374
|
),
|
|
375
375
|
),
|
|
@@ -427,9 +427,9 @@ class RawSpeechToTextJobClient:
|
|
|
427
427
|
raise BadRequestError(
|
|
428
428
|
headers=dict(_response.headers),
|
|
429
429
|
body=typing.cast(
|
|
430
|
-
typing.Any,
|
|
430
|
+
typing.Optional[typing.Any],
|
|
431
431
|
parse_obj_as(
|
|
432
|
-
type_=typing.Any, # type: ignore
|
|
432
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
433
433
|
object_=_response.json(),
|
|
434
434
|
),
|
|
435
435
|
),
|
|
@@ -438,9 +438,9 @@ class RawSpeechToTextJobClient:
|
|
|
438
438
|
raise ForbiddenError(
|
|
439
439
|
headers=dict(_response.headers),
|
|
440
440
|
body=typing.cast(
|
|
441
|
-
typing.Any,
|
|
441
|
+
typing.Optional[typing.Any],
|
|
442
442
|
parse_obj_as(
|
|
443
|
-
type_=typing.Any, # type: ignore
|
|
443
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
444
444
|
object_=_response.json(),
|
|
445
445
|
),
|
|
446
446
|
),
|
|
@@ -449,9 +449,9 @@ class RawSpeechToTextJobClient:
|
|
|
449
449
|
raise UnprocessableEntityError(
|
|
450
450
|
headers=dict(_response.headers),
|
|
451
451
|
body=typing.cast(
|
|
452
|
-
typing.Any,
|
|
452
|
+
typing.Optional[typing.Any],
|
|
453
453
|
parse_obj_as(
|
|
454
|
-
type_=typing.Any, # type: ignore
|
|
454
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
455
455
|
object_=_response.json(),
|
|
456
456
|
),
|
|
457
457
|
),
|
|
@@ -460,9 +460,9 @@ class RawSpeechToTextJobClient:
|
|
|
460
460
|
raise TooManyRequestsError(
|
|
461
461
|
headers=dict(_response.headers),
|
|
462
462
|
body=typing.cast(
|
|
463
|
-
typing.Any,
|
|
463
|
+
typing.Optional[typing.Any],
|
|
464
464
|
parse_obj_as(
|
|
465
|
-
type_=typing.Any, # type: ignore
|
|
465
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
466
466
|
object_=_response.json(),
|
|
467
467
|
),
|
|
468
468
|
),
|
|
@@ -471,9 +471,9 @@ class RawSpeechToTextJobClient:
|
|
|
471
471
|
raise InternalServerError(
|
|
472
472
|
headers=dict(_response.headers),
|
|
473
473
|
body=typing.cast(
|
|
474
|
-
typing.Any,
|
|
474
|
+
typing.Optional[typing.Any],
|
|
475
475
|
parse_obj_as(
|
|
476
|
-
type_=typing.Any, # type: ignore
|
|
476
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
477
477
|
object_=_response.json(),
|
|
478
478
|
),
|
|
479
479
|
),
|
|
@@ -482,9 +482,9 @@ class RawSpeechToTextJobClient:
|
|
|
482
482
|
raise ServiceUnavailableError(
|
|
483
483
|
headers=dict(_response.headers),
|
|
484
484
|
body=typing.cast(
|
|
485
|
-
typing.Any,
|
|
485
|
+
typing.Optional[typing.Any],
|
|
486
486
|
parse_obj_as(
|
|
487
|
-
type_=typing.Any, # type: ignore
|
|
487
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
488
488
|
object_=_response.json(),
|
|
489
489
|
),
|
|
490
490
|
),
|
|
@@ -542,9 +542,9 @@ class RawSpeechToTextJobClient:
|
|
|
542
542
|
raise BadRequestError(
|
|
543
543
|
headers=dict(_response.headers),
|
|
544
544
|
body=typing.cast(
|
|
545
|
-
typing.Any,
|
|
545
|
+
typing.Optional[typing.Any],
|
|
546
546
|
parse_obj_as(
|
|
547
|
-
type_=typing.Any, # type: ignore
|
|
547
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
548
548
|
object_=_response.json(),
|
|
549
549
|
),
|
|
550
550
|
),
|
|
@@ -553,9 +553,9 @@ class RawSpeechToTextJobClient:
|
|
|
553
553
|
raise ForbiddenError(
|
|
554
554
|
headers=dict(_response.headers),
|
|
555
555
|
body=typing.cast(
|
|
556
|
-
typing.Any,
|
|
556
|
+
typing.Optional[typing.Any],
|
|
557
557
|
parse_obj_as(
|
|
558
|
-
type_=typing.Any, # type: ignore
|
|
558
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
559
559
|
object_=_response.json(),
|
|
560
560
|
),
|
|
561
561
|
),
|
|
@@ -564,9 +564,9 @@ class RawSpeechToTextJobClient:
|
|
|
564
564
|
raise UnprocessableEntityError(
|
|
565
565
|
headers=dict(_response.headers),
|
|
566
566
|
body=typing.cast(
|
|
567
|
-
typing.Any,
|
|
567
|
+
typing.Optional[typing.Any],
|
|
568
568
|
parse_obj_as(
|
|
569
|
-
type_=typing.Any, # type: ignore
|
|
569
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
570
570
|
object_=_response.json(),
|
|
571
571
|
),
|
|
572
572
|
),
|
|
@@ -575,9 +575,9 @@ class RawSpeechToTextJobClient:
|
|
|
575
575
|
raise TooManyRequestsError(
|
|
576
576
|
headers=dict(_response.headers),
|
|
577
577
|
body=typing.cast(
|
|
578
|
-
typing.Any,
|
|
578
|
+
typing.Optional[typing.Any],
|
|
579
579
|
parse_obj_as(
|
|
580
|
-
type_=typing.Any, # type: ignore
|
|
580
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
581
581
|
object_=_response.json(),
|
|
582
582
|
),
|
|
583
583
|
),
|
|
@@ -586,9 +586,9 @@ class RawSpeechToTextJobClient:
|
|
|
586
586
|
raise InternalServerError(
|
|
587
587
|
headers=dict(_response.headers),
|
|
588
588
|
body=typing.cast(
|
|
589
|
-
typing.Any,
|
|
589
|
+
typing.Optional[typing.Any],
|
|
590
590
|
parse_obj_as(
|
|
591
|
-
type_=typing.Any, # type: ignore
|
|
591
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
592
592
|
object_=_response.json(),
|
|
593
593
|
),
|
|
594
594
|
),
|
|
@@ -597,9 +597,9 @@ class RawSpeechToTextJobClient:
|
|
|
597
597
|
raise ServiceUnavailableError(
|
|
598
598
|
headers=dict(_response.headers),
|
|
599
599
|
body=typing.cast(
|
|
600
|
-
typing.Any,
|
|
600
|
+
typing.Optional[typing.Any],
|
|
601
601
|
parse_obj_as(
|
|
602
|
-
type_=typing.Any, # type: ignore
|
|
602
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
603
603
|
object_=_response.json(),
|
|
604
604
|
),
|
|
605
605
|
),
|
|
@@ -672,9 +672,9 @@ class AsyncRawSpeechToTextJobClient:
|
|
|
672
672
|
raise BadRequestError(
|
|
673
673
|
headers=dict(_response.headers),
|
|
674
674
|
body=typing.cast(
|
|
675
|
-
typing.Any,
|
|
675
|
+
typing.Optional[typing.Any],
|
|
676
676
|
parse_obj_as(
|
|
677
|
-
type_=typing.Any, # type: ignore
|
|
677
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
678
678
|
object_=_response.json(),
|
|
679
679
|
),
|
|
680
680
|
),
|
|
@@ -683,9 +683,9 @@ class AsyncRawSpeechToTextJobClient:
|
|
|
683
683
|
raise ForbiddenError(
|
|
684
684
|
headers=dict(_response.headers),
|
|
685
685
|
body=typing.cast(
|
|
686
|
-
typing.Any,
|
|
686
|
+
typing.Optional[typing.Any],
|
|
687
687
|
parse_obj_as(
|
|
688
|
-
type_=typing.Any, # type: ignore
|
|
688
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
689
689
|
object_=_response.json(),
|
|
690
690
|
),
|
|
691
691
|
),
|
|
@@ -694,9 +694,9 @@ class AsyncRawSpeechToTextJobClient:
|
|
|
694
694
|
raise UnprocessableEntityError(
|
|
695
695
|
headers=dict(_response.headers),
|
|
696
696
|
body=typing.cast(
|
|
697
|
-
typing.Any,
|
|
697
|
+
typing.Optional[typing.Any],
|
|
698
698
|
parse_obj_as(
|
|
699
|
-
type_=typing.Any, # type: ignore
|
|
699
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
700
700
|
object_=_response.json(),
|
|
701
701
|
),
|
|
702
702
|
),
|
|
@@ -705,9 +705,9 @@ class AsyncRawSpeechToTextJobClient:
|
|
|
705
705
|
raise TooManyRequestsError(
|
|
706
706
|
headers=dict(_response.headers),
|
|
707
707
|
body=typing.cast(
|
|
708
|
-
typing.Any,
|
|
708
|
+
typing.Optional[typing.Any],
|
|
709
709
|
parse_obj_as(
|
|
710
|
-
type_=typing.Any, # type: ignore
|
|
710
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
711
711
|
object_=_response.json(),
|
|
712
712
|
),
|
|
713
713
|
),
|
|
@@ -716,9 +716,9 @@ class AsyncRawSpeechToTextJobClient:
|
|
|
716
716
|
raise InternalServerError(
|
|
717
717
|
headers=dict(_response.headers),
|
|
718
718
|
body=typing.cast(
|
|
719
|
-
typing.Any,
|
|
719
|
+
typing.Optional[typing.Any],
|
|
720
720
|
parse_obj_as(
|
|
721
|
-
type_=typing.Any, # type: ignore
|
|
721
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
722
722
|
object_=_response.json(),
|
|
723
723
|
),
|
|
724
724
|
),
|
|
@@ -727,9 +727,9 @@ class AsyncRawSpeechToTextJobClient:
|
|
|
727
727
|
raise ServiceUnavailableError(
|
|
728
728
|
headers=dict(_response.headers),
|
|
729
729
|
body=typing.cast(
|
|
730
|
-
typing.Any,
|
|
730
|
+
typing.Optional[typing.Any],
|
|
731
731
|
parse_obj_as(
|
|
732
|
-
type_=typing.Any, # type: ignore
|
|
732
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
733
733
|
object_=_response.json(),
|
|
734
734
|
),
|
|
735
735
|
),
|
|
@@ -780,9 +780,9 @@ class AsyncRawSpeechToTextJobClient:
|
|
|
780
780
|
raise BadRequestError(
|
|
781
781
|
headers=dict(_response.headers),
|
|
782
782
|
body=typing.cast(
|
|
783
|
-
typing.Any,
|
|
783
|
+
typing.Optional[typing.Any],
|
|
784
784
|
parse_obj_as(
|
|
785
|
-
type_=typing.Any, # type: ignore
|
|
785
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
786
786
|
object_=_response.json(),
|
|
787
787
|
),
|
|
788
788
|
),
|
|
@@ -791,9 +791,9 @@ class AsyncRawSpeechToTextJobClient:
|
|
|
791
791
|
raise ForbiddenError(
|
|
792
792
|
headers=dict(_response.headers),
|
|
793
793
|
body=typing.cast(
|
|
794
|
-
typing.Any,
|
|
794
|
+
typing.Optional[typing.Any],
|
|
795
795
|
parse_obj_as(
|
|
796
|
-
type_=typing.Any, # type: ignore
|
|
796
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
797
797
|
object_=_response.json(),
|
|
798
798
|
),
|
|
799
799
|
),
|
|
@@ -802,9 +802,9 @@ class AsyncRawSpeechToTextJobClient:
|
|
|
802
802
|
raise UnprocessableEntityError(
|
|
803
803
|
headers=dict(_response.headers),
|
|
804
804
|
body=typing.cast(
|
|
805
|
-
typing.Any,
|
|
805
|
+
typing.Optional[typing.Any],
|
|
806
806
|
parse_obj_as(
|
|
807
|
-
type_=typing.Any, # type: ignore
|
|
807
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
808
808
|
object_=_response.json(),
|
|
809
809
|
),
|
|
810
810
|
),
|
|
@@ -813,9 +813,9 @@ class AsyncRawSpeechToTextJobClient:
|
|
|
813
813
|
raise TooManyRequestsError(
|
|
814
814
|
headers=dict(_response.headers),
|
|
815
815
|
body=typing.cast(
|
|
816
|
-
typing.Any,
|
|
816
|
+
typing.Optional[typing.Any],
|
|
817
817
|
parse_obj_as(
|
|
818
|
-
type_=typing.Any, # type: ignore
|
|
818
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
819
819
|
object_=_response.json(),
|
|
820
820
|
),
|
|
821
821
|
),
|
|
@@ -824,9 +824,9 @@ class AsyncRawSpeechToTextJobClient:
|
|
|
824
824
|
raise InternalServerError(
|
|
825
825
|
headers=dict(_response.headers),
|
|
826
826
|
body=typing.cast(
|
|
827
|
-
typing.Any,
|
|
827
|
+
typing.Optional[typing.Any],
|
|
828
828
|
parse_obj_as(
|
|
829
|
-
type_=typing.Any, # type: ignore
|
|
829
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
830
830
|
object_=_response.json(),
|
|
831
831
|
),
|
|
832
832
|
),
|
|
@@ -835,9 +835,9 @@ class AsyncRawSpeechToTextJobClient:
|
|
|
835
835
|
raise ServiceUnavailableError(
|
|
836
836
|
headers=dict(_response.headers),
|
|
837
837
|
body=typing.cast(
|
|
838
|
-
typing.Any,
|
|
838
|
+
typing.Optional[typing.Any],
|
|
839
839
|
parse_obj_as(
|
|
840
|
-
type_=typing.Any, # type: ignore
|
|
840
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
841
841
|
object_=_response.json(),
|
|
842
842
|
),
|
|
843
843
|
),
|
|
@@ -895,9 +895,9 @@ class AsyncRawSpeechToTextJobClient:
|
|
|
895
895
|
raise BadRequestError(
|
|
896
896
|
headers=dict(_response.headers),
|
|
897
897
|
body=typing.cast(
|
|
898
|
-
typing.Any,
|
|
898
|
+
typing.Optional[typing.Any],
|
|
899
899
|
parse_obj_as(
|
|
900
|
-
type_=typing.Any, # type: ignore
|
|
900
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
901
901
|
object_=_response.json(),
|
|
902
902
|
),
|
|
903
903
|
),
|
|
@@ -906,9 +906,9 @@ class AsyncRawSpeechToTextJobClient:
|
|
|
906
906
|
raise ForbiddenError(
|
|
907
907
|
headers=dict(_response.headers),
|
|
908
908
|
body=typing.cast(
|
|
909
|
-
typing.Any,
|
|
909
|
+
typing.Optional[typing.Any],
|
|
910
910
|
parse_obj_as(
|
|
911
|
-
type_=typing.Any, # type: ignore
|
|
911
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
912
912
|
object_=_response.json(),
|
|
913
913
|
),
|
|
914
914
|
),
|
|
@@ -917,9 +917,9 @@ class AsyncRawSpeechToTextJobClient:
|
|
|
917
917
|
raise UnprocessableEntityError(
|
|
918
918
|
headers=dict(_response.headers),
|
|
919
919
|
body=typing.cast(
|
|
920
|
-
typing.Any,
|
|
920
|
+
typing.Optional[typing.Any],
|
|
921
921
|
parse_obj_as(
|
|
922
|
-
type_=typing.Any, # type: ignore
|
|
922
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
923
923
|
object_=_response.json(),
|
|
924
924
|
),
|
|
925
925
|
),
|
|
@@ -928,9 +928,9 @@ class AsyncRawSpeechToTextJobClient:
|
|
|
928
928
|
raise TooManyRequestsError(
|
|
929
929
|
headers=dict(_response.headers),
|
|
930
930
|
body=typing.cast(
|
|
931
|
-
typing.Any,
|
|
931
|
+
typing.Optional[typing.Any],
|
|
932
932
|
parse_obj_as(
|
|
933
|
-
type_=typing.Any, # type: ignore
|
|
933
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
934
934
|
object_=_response.json(),
|
|
935
935
|
),
|
|
936
936
|
),
|
|
@@ -939,9 +939,9 @@ class AsyncRawSpeechToTextJobClient:
|
|
|
939
939
|
raise InternalServerError(
|
|
940
940
|
headers=dict(_response.headers),
|
|
941
941
|
body=typing.cast(
|
|
942
|
-
typing.Any,
|
|
942
|
+
typing.Optional[typing.Any],
|
|
943
943
|
parse_obj_as(
|
|
944
|
-
type_=typing.Any, # type: ignore
|
|
944
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
945
945
|
object_=_response.json(),
|
|
946
946
|
),
|
|
947
947
|
),
|
|
@@ -950,9 +950,9 @@ class AsyncRawSpeechToTextJobClient:
|
|
|
950
950
|
raise ServiceUnavailableError(
|
|
951
951
|
headers=dict(_response.headers),
|
|
952
952
|
body=typing.cast(
|
|
953
|
-
typing.Any,
|
|
953
|
+
typing.Optional[typing.Any],
|
|
954
954
|
parse_obj_as(
|
|
955
|
-
type_=typing.Any, # type: ignore
|
|
955
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
956
956
|
object_=_response.json(),
|
|
957
957
|
),
|
|
958
958
|
),
|
|
@@ -1010,9 +1010,9 @@ class AsyncRawSpeechToTextJobClient:
|
|
|
1010
1010
|
raise BadRequestError(
|
|
1011
1011
|
headers=dict(_response.headers),
|
|
1012
1012
|
body=typing.cast(
|
|
1013
|
-
typing.Any,
|
|
1013
|
+
typing.Optional[typing.Any],
|
|
1014
1014
|
parse_obj_as(
|
|
1015
|
-
type_=typing.Any, # type: ignore
|
|
1015
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
1016
1016
|
object_=_response.json(),
|
|
1017
1017
|
),
|
|
1018
1018
|
),
|
|
@@ -1021,9 +1021,9 @@ class AsyncRawSpeechToTextJobClient:
|
|
|
1021
1021
|
raise ForbiddenError(
|
|
1022
1022
|
headers=dict(_response.headers),
|
|
1023
1023
|
body=typing.cast(
|
|
1024
|
-
typing.Any,
|
|
1024
|
+
typing.Optional[typing.Any],
|
|
1025
1025
|
parse_obj_as(
|
|
1026
|
-
type_=typing.Any, # type: ignore
|
|
1026
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
1027
1027
|
object_=_response.json(),
|
|
1028
1028
|
),
|
|
1029
1029
|
),
|
|
@@ -1032,9 +1032,9 @@ class AsyncRawSpeechToTextJobClient:
|
|
|
1032
1032
|
raise UnprocessableEntityError(
|
|
1033
1033
|
headers=dict(_response.headers),
|
|
1034
1034
|
body=typing.cast(
|
|
1035
|
-
typing.Any,
|
|
1035
|
+
typing.Optional[typing.Any],
|
|
1036
1036
|
parse_obj_as(
|
|
1037
|
-
type_=typing.Any, # type: ignore
|
|
1037
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
1038
1038
|
object_=_response.json(),
|
|
1039
1039
|
),
|
|
1040
1040
|
),
|
|
@@ -1043,9 +1043,9 @@ class AsyncRawSpeechToTextJobClient:
|
|
|
1043
1043
|
raise TooManyRequestsError(
|
|
1044
1044
|
headers=dict(_response.headers),
|
|
1045
1045
|
body=typing.cast(
|
|
1046
|
-
typing.Any,
|
|
1046
|
+
typing.Optional[typing.Any],
|
|
1047
1047
|
parse_obj_as(
|
|
1048
|
-
type_=typing.Any, # type: ignore
|
|
1048
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
1049
1049
|
object_=_response.json(),
|
|
1050
1050
|
),
|
|
1051
1051
|
),
|
|
@@ -1054,9 +1054,9 @@ class AsyncRawSpeechToTextJobClient:
|
|
|
1054
1054
|
raise InternalServerError(
|
|
1055
1055
|
headers=dict(_response.headers),
|
|
1056
1056
|
body=typing.cast(
|
|
1057
|
-
typing.Any,
|
|
1057
|
+
typing.Optional[typing.Any],
|
|
1058
1058
|
parse_obj_as(
|
|
1059
|
-
type_=typing.Any, # type: ignore
|
|
1059
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
1060
1060
|
object_=_response.json(),
|
|
1061
1061
|
),
|
|
1062
1062
|
),
|
|
@@ -1065,9 +1065,9 @@ class AsyncRawSpeechToTextJobClient:
|
|
|
1065
1065
|
raise ServiceUnavailableError(
|
|
1066
1066
|
headers=dict(_response.headers),
|
|
1067
1067
|
body=typing.cast(
|
|
1068
|
-
typing.Any,
|
|
1068
|
+
typing.Optional[typing.Any],
|
|
1069
1069
|
parse_obj_as(
|
|
1070
|
-
type_=typing.Any, # type: ignore
|
|
1070
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
1071
1071
|
object_=_response.json(),
|
|
1072
1072
|
),
|
|
1073
1073
|
),
|
|
@@ -1125,9 +1125,9 @@ class AsyncRawSpeechToTextJobClient:
|
|
|
1125
1125
|
raise BadRequestError(
|
|
1126
1126
|
headers=dict(_response.headers),
|
|
1127
1127
|
body=typing.cast(
|
|
1128
|
-
typing.Any,
|
|
1128
|
+
typing.Optional[typing.Any],
|
|
1129
1129
|
parse_obj_as(
|
|
1130
|
-
type_=typing.Any, # type: ignore
|
|
1130
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
1131
1131
|
object_=_response.json(),
|
|
1132
1132
|
),
|
|
1133
1133
|
),
|
|
@@ -1136,9 +1136,9 @@ class AsyncRawSpeechToTextJobClient:
|
|
|
1136
1136
|
raise ForbiddenError(
|
|
1137
1137
|
headers=dict(_response.headers),
|
|
1138
1138
|
body=typing.cast(
|
|
1139
|
-
typing.Any,
|
|
1139
|
+
typing.Optional[typing.Any],
|
|
1140
1140
|
parse_obj_as(
|
|
1141
|
-
type_=typing.Any, # type: ignore
|
|
1141
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
1142
1142
|
object_=_response.json(),
|
|
1143
1143
|
),
|
|
1144
1144
|
),
|
|
@@ -1147,9 +1147,9 @@ class AsyncRawSpeechToTextJobClient:
|
|
|
1147
1147
|
raise UnprocessableEntityError(
|
|
1148
1148
|
headers=dict(_response.headers),
|
|
1149
1149
|
body=typing.cast(
|
|
1150
|
-
typing.Any,
|
|
1150
|
+
typing.Optional[typing.Any],
|
|
1151
1151
|
parse_obj_as(
|
|
1152
|
-
type_=typing.Any, # type: ignore
|
|
1152
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
1153
1153
|
object_=_response.json(),
|
|
1154
1154
|
),
|
|
1155
1155
|
),
|
|
@@ -1158,9 +1158,9 @@ class AsyncRawSpeechToTextJobClient:
|
|
|
1158
1158
|
raise TooManyRequestsError(
|
|
1159
1159
|
headers=dict(_response.headers),
|
|
1160
1160
|
body=typing.cast(
|
|
1161
|
-
typing.Any,
|
|
1161
|
+
typing.Optional[typing.Any],
|
|
1162
1162
|
parse_obj_as(
|
|
1163
|
-
type_=typing.Any, # type: ignore
|
|
1163
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
1164
1164
|
object_=_response.json(),
|
|
1165
1165
|
),
|
|
1166
1166
|
),
|
|
@@ -1169,9 +1169,9 @@ class AsyncRawSpeechToTextJobClient:
|
|
|
1169
1169
|
raise InternalServerError(
|
|
1170
1170
|
headers=dict(_response.headers),
|
|
1171
1171
|
body=typing.cast(
|
|
1172
|
-
typing.Any,
|
|
1172
|
+
typing.Optional[typing.Any],
|
|
1173
1173
|
parse_obj_as(
|
|
1174
|
-
type_=typing.Any, # type: ignore
|
|
1174
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
1175
1175
|
object_=_response.json(),
|
|
1176
1176
|
),
|
|
1177
1177
|
),
|
|
@@ -1180,9 +1180,9 @@ class AsyncRawSpeechToTextJobClient:
|
|
|
1180
1180
|
raise ServiceUnavailableError(
|
|
1181
1181
|
headers=dict(_response.headers),
|
|
1182
1182
|
body=typing.cast(
|
|
1183
|
-
typing.Any,
|
|
1183
|
+
typing.Optional[typing.Any],
|
|
1184
1184
|
parse_obj_as(
|
|
1185
|
-
type_=typing.Any, # type: ignore
|
|
1185
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
1186
1186
|
object_=_response.json(),
|
|
1187
1187
|
),
|
|
1188
1188
|
),
|