|
29 | 29 | class Transcriptions(SyncAPIResource):
|
30 | 30 | @cached_property
|
31 | 31 | def with_raw_response(self) -> TranscriptionsWithRawResponse:
|
| 32 | + """ |
| 33 | + This property can be used as a prefix for any HTTP method call to return the |
| 34 | + the raw response object instead of the parsed content. |
| 35 | +
|
| 36 | + For more information, see https://www.github.com/openai/openai-python#accessing-raw-response-data-eg-headers |
| 37 | + """ |
32 | 38 | return TranscriptionsWithRawResponse(self)
|
33 | 39 |
|
34 | 40 | @cached_property
|
35 | 41 | def with_streaming_response(self) -> TranscriptionsWithStreamingResponse:
|
| 42 | + """ |
| 43 | + An alternative to `.with_raw_response` that doesn't eagerly read the response body. |
| 44 | +
|
| 45 | + For more information, see https://www.github.com/openai/openai-python#with_streaming_response |
| 46 | + """ |
36 | 47 | return TranscriptionsWithStreamingResponse(self)
|
37 | 48 |
|
38 | 49 | def create(
|
@@ -125,10 +136,21 @@ def create(
|
125 | 136 | class AsyncTranscriptions(AsyncAPIResource):
|
126 | 137 | @cached_property
|
127 | 138 | def with_raw_response(self) -> AsyncTranscriptionsWithRawResponse:
|
| 139 | + """ |
| 140 | + This property can be used as a prefix for any HTTP method call to return the |
| 141 | + the raw response object instead of the parsed content. |
| 142 | +
|
| 143 | + For more information, see https://www.github.com/openai/openai-python#accessing-raw-response-data-eg-headers |
| 144 | + """ |
128 | 145 | return AsyncTranscriptionsWithRawResponse(self)
|
129 | 146 |
|
130 | 147 | @cached_property
|
131 | 148 | def with_streaming_response(self) -> AsyncTranscriptionsWithStreamingResponse:
|
| 149 | + """ |
| 150 | + An alternative to `.with_raw_response` that doesn't eagerly read the response body. |
| 151 | +
|
| 152 | + For more information, see https://www.github.com/openai/openai-python#with_streaming_response |
| 153 | + """ |
132 | 154 | return AsyncTranscriptionsWithStreamingResponse(self)
|
133 | 155 |
|
134 | 156 | async def create(
|
|
0 commit comments