Skip to content

Commit b1de941

Browse files
chore(internal): codegen related update
1 parent f11ffe8 commit b1de941

35 files changed

Lines changed: 376 additions & 0 deletions

src/openai/_client.py

Lines changed: 108 additions & 0 deletions
Large diffs are not rendered by default.

src/openai/resources/audio/audio.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,17 @@
3535
class Audio(SyncAPIResource):
3636
@cached_property
3737
def transcriptions(self) -> Transcriptions:
38+
"""Turn audio into text or text into audio."""
3839
return Transcriptions(self._client)
3940

4041
@cached_property
4142
def translations(self) -> Translations:
43+
"""Turn audio into text or text into audio."""
4244
return Translations(self._client)
4345

4446
@cached_property
4547
def speech(self) -> Speech:
48+
"""Turn audio into text or text into audio."""
4649
return Speech(self._client)
4750

4851
@cached_property
@@ -68,14 +71,17 @@ def with_streaming_response(self) -> AudioWithStreamingResponse:
6871
class AsyncAudio(AsyncAPIResource):
6972
@cached_property
7073
def transcriptions(self) -> AsyncTranscriptions:
74+
"""Turn audio into text or text into audio."""
7175
return AsyncTranscriptions(self._client)
7276

7377
@cached_property
7478
def translations(self) -> AsyncTranslations:
79+
"""Turn audio into text or text into audio."""
7580
return AsyncTranslations(self._client)
7681

7782
@cached_property
7883
def speech(self) -> AsyncSpeech:
84+
"""Turn audio into text or text into audio."""
7985
return AsyncSpeech(self._client)
8086

8187
@cached_property
@@ -104,14 +110,17 @@ def __init__(self, audio: Audio) -> None:
104110

105111
@cached_property
106112
def transcriptions(self) -> TranscriptionsWithRawResponse:
113+
"""Turn audio into text or text into audio."""
107114
return TranscriptionsWithRawResponse(self._audio.transcriptions)
108115

109116
@cached_property
110117
def translations(self) -> TranslationsWithRawResponse:
118+
"""Turn audio into text or text into audio."""
111119
return TranslationsWithRawResponse(self._audio.translations)
112120

113121
@cached_property
114122
def speech(self) -> SpeechWithRawResponse:
123+
"""Turn audio into text or text into audio."""
115124
return SpeechWithRawResponse(self._audio.speech)
116125

117126

@@ -121,14 +130,17 @@ def __init__(self, audio: AsyncAudio) -> None:
121130

122131
@cached_property
123132
def transcriptions(self) -> AsyncTranscriptionsWithRawResponse:
133+
"""Turn audio into text or text into audio."""
124134
return AsyncTranscriptionsWithRawResponse(self._audio.transcriptions)
125135

126136
@cached_property
127137
def translations(self) -> AsyncTranslationsWithRawResponse:
138+
"""Turn audio into text or text into audio."""
128139
return AsyncTranslationsWithRawResponse(self._audio.translations)
129140

130141
@cached_property
131142
def speech(self) -> AsyncSpeechWithRawResponse:
143+
"""Turn audio into text or text into audio."""
132144
return AsyncSpeechWithRawResponse(self._audio.speech)
133145

134146

@@ -138,14 +150,17 @@ def __init__(self, audio: Audio) -> None:
138150

139151
@cached_property
140152
def transcriptions(self) -> TranscriptionsWithStreamingResponse:
153+
"""Turn audio into text or text into audio."""
141154
return TranscriptionsWithStreamingResponse(self._audio.transcriptions)
142155

143156
@cached_property
144157
def translations(self) -> TranslationsWithStreamingResponse:
158+
"""Turn audio into text or text into audio."""
145159
return TranslationsWithStreamingResponse(self._audio.translations)
146160

147161
@cached_property
148162
def speech(self) -> SpeechWithStreamingResponse:
163+
"""Turn audio into text or text into audio."""
149164
return SpeechWithStreamingResponse(self._audio.speech)
150165

151166

@@ -155,12 +170,15 @@ def __init__(self, audio: AsyncAudio) -> None:
155170

156171
@cached_property
157172
def transcriptions(self) -> AsyncTranscriptionsWithStreamingResponse:
173+
"""Turn audio into text or text into audio."""
158174
return AsyncTranscriptionsWithStreamingResponse(self._audio.transcriptions)
159175

160176
@cached_property
161177
def translations(self) -> AsyncTranslationsWithStreamingResponse:
178+
"""Turn audio into text or text into audio."""
162179
return AsyncTranslationsWithStreamingResponse(self._audio.translations)
163180

164181
@cached_property
165182
def speech(self) -> AsyncSpeechWithStreamingResponse:
183+
"""Turn audio into text or text into audio."""
166184
return AsyncSpeechWithStreamingResponse(self._audio.speech)

src/openai/resources/audio/speech.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626

2727

2828
class Speech(SyncAPIResource):
29+
"""Turn audio into text or text into audio."""
30+
2931
@cached_property
3032
def with_raw_response(self) -> SpeechWithRawResponse:
3133
"""
@@ -125,6 +127,8 @@ def create(
125127

126128

127129
class AsyncSpeech(AsyncAPIResource):
130+
"""Turn audio into text or text into audio."""
131+
128132
@cached_property
129133
def with_raw_response(self) -> AsyncSpeechWithRawResponse:
130134
"""

src/openai/resources/audio/transcriptions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242

4343

4444
class Transcriptions(SyncAPIResource):
45+
"""Turn audio into text or text into audio."""
46+
4547
@cached_property
4648
def with_raw_response(self) -> TranscriptionsWithRawResponse:
4749
"""
@@ -497,6 +499,8 @@ def create(
497499

498500

499501
class AsyncTranscriptions(AsyncAPIResource):
502+
"""Turn audio into text or text into audio."""
503+
500504
@cached_property
501505
def with_raw_response(self) -> AsyncTranscriptionsWithRawResponse:
502506
"""

src/openai/resources/audio/translations.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727

2828

2929
class Translations(SyncAPIResource):
30+
"""Turn audio into text or text into audio."""
31+
3032
@cached_property
3133
def with_raw_response(self) -> TranslationsWithRawResponse:
3234
"""
@@ -170,6 +172,8 @@ def create(
170172

171173

172174
class AsyncTranslations(AsyncAPIResource):
175+
"""Turn audio into text or text into audio."""
176+
173177
@cached_property
174178
def with_raw_response(self) -> AsyncTranslationsWithRawResponse:
175179
"""

src/openai/resources/batches.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323

2424

2525
class Batches(SyncAPIResource):
26+
"""Create large batches of API requests to run asynchronously."""
27+
2628
@cached_property
2729
def with_raw_response(self) -> BatchesWithRawResponse:
2830
"""
@@ -247,6 +249,8 @@ def cancel(
247249

248250

249251
class AsyncBatches(AsyncAPIResource):
252+
"""Create large batches of API requests to run asynchronously."""
253+
250254
@cached_property
251255
def with_raw_response(self) -> AsyncBatchesWithRawResponse:
252256
"""

src/openai/resources/beta/assistants.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333

3434

3535
class Assistants(SyncAPIResource):
36+
"""Build Assistants that can call models and use tools."""
37+
3638
@cached_property
3739
def with_raw_response(self) -> AssistantsWithRawResponse:
3840
"""
@@ -507,6 +509,8 @@ def delete(
507509

508510

509511
class AsyncAssistants(AsyncAPIResource):
512+
"""Build Assistants that can call models and use tools."""
513+
510514
@cached_property
511515
def with_raw_response(self) -> AsyncAssistantsWithRawResponse:
512516
"""

src/openai/resources/beta/beta.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,12 @@ def chatkit(self) -> ChatKit:
5252

5353
@cached_property
5454
def assistants(self) -> Assistants:
55+
"""Build Assistants that can call models and use tools."""
5556
return Assistants(self._client)
5657

5758
@cached_property
5859
def threads(self) -> Threads:
60+
"""Build Assistants that can call models and use tools."""
5961
return Threads(self._client)
6062

6163
@cached_property
@@ -93,10 +95,12 @@ def chatkit(self) -> AsyncChatKit:
9395

9496
@cached_property
9597
def assistants(self) -> AsyncAssistants:
98+
"""Build Assistants that can call models and use tools."""
9699
return AsyncAssistants(self._client)
97100

98101
@cached_property
99102
def threads(self) -> AsyncThreads:
103+
"""Build Assistants that can call models and use tools."""
100104
return AsyncThreads(self._client)
101105

102106
@cached_property
@@ -129,10 +133,12 @@ def chatkit(self) -> ChatKitWithRawResponse:
129133

130134
@cached_property
131135
def assistants(self) -> AssistantsWithRawResponse:
136+
"""Build Assistants that can call models and use tools."""
132137
return AssistantsWithRawResponse(self._beta.assistants)
133138

134139
@cached_property
135140
def threads(self) -> ThreadsWithRawResponse:
141+
"""Build Assistants that can call models and use tools."""
136142
return ThreadsWithRawResponse(self._beta.threads)
137143

138144

@@ -146,10 +152,12 @@ def chatkit(self) -> AsyncChatKitWithRawResponse:
146152

147153
@cached_property
148154
def assistants(self) -> AsyncAssistantsWithRawResponse:
155+
"""Build Assistants that can call models and use tools."""
149156
return AsyncAssistantsWithRawResponse(self._beta.assistants)
150157

151158
@cached_property
152159
def threads(self) -> AsyncThreadsWithRawResponse:
160+
"""Build Assistants that can call models and use tools."""
153161
return AsyncThreadsWithRawResponse(self._beta.threads)
154162

155163

@@ -163,10 +171,12 @@ def chatkit(self) -> ChatKitWithStreamingResponse:
163171

164172
@cached_property
165173
def assistants(self) -> AssistantsWithStreamingResponse:
174+
"""Build Assistants that can call models and use tools."""
166175
return AssistantsWithStreamingResponse(self._beta.assistants)
167176

168177
@cached_property
169178
def threads(self) -> ThreadsWithStreamingResponse:
179+
"""Build Assistants that can call models and use tools."""
170180
return ThreadsWithStreamingResponse(self._beta.threads)
171181

172182

@@ -180,8 +190,10 @@ def chatkit(self) -> AsyncChatKitWithStreamingResponse:
180190

181191
@cached_property
182192
def assistants(self) -> AsyncAssistantsWithStreamingResponse:
193+
"""Build Assistants that can call models and use tools."""
183194
return AsyncAssistantsWithStreamingResponse(self._beta.assistants)
184195

185196
@cached_property
186197
def threads(self) -> AsyncThreadsWithStreamingResponse:
198+
"""Build Assistants that can call models and use tools."""
187199
return AsyncThreadsWithStreamingResponse(self._beta.threads)

src/openai/resources/beta/threads/messages.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929

3030

3131
class Messages(SyncAPIResource):
32+
"""Build Assistants that can call models and use tools."""
33+
3234
@cached_property
3335
def with_raw_response(self) -> MessagesWithRawResponse:
3436
"""
@@ -312,6 +314,8 @@ def delete(
312314

313315

314316
class AsyncMessages(AsyncAPIResource):
317+
"""Build Assistants that can call models and use tools."""
318+
315319
@cached_property
316320
def with_raw_response(self) -> AsyncMessagesWithRawResponse:
317321
"""

src/openai/resources/beta/threads/runs/runs.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,11 @@
5959

6060

6161
class Runs(SyncAPIResource):
62+
"""Build Assistants that can call models and use tools."""
63+
6264
@cached_property
6365
def steps(self) -> Steps:
66+
"""Build Assistants that can call models and use tools."""
6467
return Steps(self._client)
6568

6669
@cached_property
@@ -1518,8 +1521,11 @@ def submit_tool_outputs_stream(
15181521

15191522

15201523
class AsyncRuns(AsyncAPIResource):
1524+
"""Build Assistants that can call models and use tools."""
1525+
15211526
@cached_property
15221527
def steps(self) -> AsyncSteps:
1528+
"""Build Assistants that can call models and use tools."""
15231529
return AsyncSteps(self._client)
15241530

15251531
@cached_property
@@ -3015,6 +3021,7 @@ def __init__(self, runs: Runs) -> None:
30153021

30163022
@cached_property
30173023
def steps(self) -> StepsWithRawResponse:
3024+
"""Build Assistants that can call models and use tools."""
30183025
return StepsWithRawResponse(self._runs.steps)
30193026

30203027

@@ -3055,6 +3062,7 @@ def __init__(self, runs: AsyncRuns) -> None:
30553062

30563063
@cached_property
30573064
def steps(self) -> AsyncStepsWithRawResponse:
3065+
"""Build Assistants that can call models and use tools."""
30583066
return AsyncStepsWithRawResponse(self._runs.steps)
30593067

30603068

@@ -3095,6 +3103,7 @@ def __init__(self, runs: Runs) -> None:
30953103

30963104
@cached_property
30973105
def steps(self) -> StepsWithStreamingResponse:
3106+
"""Build Assistants that can call models and use tools."""
30983107
return StepsWithStreamingResponse(self._runs.steps)
30993108

31003109

@@ -3135,4 +3144,5 @@ def __init__(self, runs: AsyncRuns) -> None:
31353144

31363145
@cached_property
31373146
def steps(self) -> AsyncStepsWithStreamingResponse:
3147+
"""Build Assistants that can call models and use tools."""
31383148
return AsyncStepsWithStreamingResponse(self._runs.steps)

0 commit comments

Comments
 (0)