|
6 | 6 | from .v1.async_client import AsyncLiveClient as AsyncLiveClientLatest |
7 | 7 | from .v1.options import LiveOptions as LiveOptionsLatest |
8 | 8 | from .enums import LiveTranscriptionEvents |
9 | | -from .v1.response import LiveResultResponse, MetadataResponse, ErrorResponse |
| 9 | +from .v1.response import ( |
| 10 | + LiveResultResponse as LiveResultResponseLatest, |
| 11 | + MetadataResponse as MetadataResponseLatest, |
| 12 | + ErrorResponse as ErrorResponseLatest, |
| 13 | +) |
10 | 14 |
|
11 | 15 | """ |
12 | 16 | The vX/client.py points to the current supported version in the SDK. |
13 | 17 | Older versions are supported in the SDK for backwards compatibility. |
14 | 18 | """ |
15 | 19 |
|
| 20 | + |
| 21 | +# input |
16 | 22 | class LiveOptions(LiveOptionsLatest): |
17 | 23 | """ |
18 | 24 | pass through for LiveOptions based on API version |
19 | 25 | """ |
| 26 | + |
| 27 | + pass |
| 28 | + |
| 29 | + |
| 30 | +# responses |
| 31 | +class LiveResultResponse(LiveResultResponseLatest): |
| 32 | + """ |
| 33 | + pass through for LiveResultResponse based on API version |
| 34 | + """ |
| 35 | + |
| 36 | + pass |
| 37 | + |
| 38 | + |
| 39 | +class MetadataResponse(MetadataResponseLatest): |
| 40 | + """ |
| 41 | + pass through for MetadataResponse based on API version |
| 42 | + """ |
| 43 | + |
| 44 | + pass |
| 45 | + |
| 46 | + |
| 47 | +class ErrorResponse(ErrorResponseLatest): |
| 48 | + """ |
| 49 | + pass through for ErrorResponse based on API version |
| 50 | + """ |
| 51 | + |
20 | 52 | pass |
21 | 53 |
|
| 54 | + |
| 55 | +# clients |
22 | 56 | class LiveClient(LiveClientLatest): |
23 | 57 | """ |
24 | 58 | Please see LiveClientLatest for details |
25 | 59 | """ |
| 60 | + |
26 | 61 | def __init__(self, config): |
27 | 62 | super().__init__(config) |
28 | 63 |
|
| 64 | + |
29 | 65 | class AsyncLiveClient(AsyncLiveClientLatest): |
30 | 66 | """ |
31 | 67 | Please see LiveClientLatest for details |
32 | 68 | """ |
| 69 | + |
33 | 70 | def __init__(self, config): |
34 | 71 | super().__init__(config) |
0 commit comments