Skip to content

Commit dae306e

Browse files
feat(api): dev day 2025 launches
DevDay 2025 launches including videos and chatkit beta
1 parent eefcfa8 commit dae306e

File tree

134 files changed

+27962
-13
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+27962
-13
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ jobs:
5959
uses: gradle/actions/setup-gradle@v4
6060

6161
- name: Build SDK
62+
# disable gradle daemon in CI because it is flakey
63+
env:
64+
GRADLE_OPTS: "-Dkotlin.compiler.execution.strategy=in-process"
6265
run: ./scripts/build
6366

6467
test:

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 122
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-fadefdc7c7e30df47c09df323669b242ff90ee08e51f304175ace5274e0aab49.yml
3-
openapi_spec_hash: 6d20f639d9ff8a097a34962da6218231
4-
config_hash: 902654e60f5d659f2bfcfd903e17c46d
1+
configured_endpoints: 135
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-d64cf80d2ebddf175c5578f68226a3d5bbd3f7fd8d62ccac2205f3fc05a355ee.yml
3+
openapi_spec_hash: d51e0d60d0c536f210b597a211bc5af0
4+
config_hash: e7c42016df9c6bd7bd6ff15101b9bc9b

openai-java-core/src/main/kotlin/com/openai/client/OpenAIClient.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import com.openai.services.blocking.RealtimeService
2222
import com.openai.services.blocking.ResponseService
2323
import com.openai.services.blocking.UploadService
2424
import com.openai.services.blocking.VectorStoreService
25+
import com.openai.services.blocking.VideoService
2526
import com.openai.services.blocking.WebhookService
2627
import java.util.function.Consumer
2728

@@ -101,6 +102,8 @@ interface OpenAIClient {
101102

102103
fun containers(): ContainerService
103104

105+
fun videos(): VideoService
106+
104107
/**
105108
* Closes this client, relinquishing any underlying resources.
106109
*
@@ -163,5 +166,7 @@ interface OpenAIClient {
163166
fun evals(): EvalService.WithRawResponse
164167

165168
fun containers(): ContainerService.WithRawResponse
169+
170+
fun videos(): VideoService.WithRawResponse
166171
}
167172
}

openai-java-core/src/main/kotlin/com/openai/client/OpenAIClientAsync.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import com.openai.services.async.RealtimeServiceAsync
2222
import com.openai.services.async.ResponseServiceAsync
2323
import com.openai.services.async.UploadServiceAsync
2424
import com.openai.services.async.VectorStoreServiceAsync
25+
import com.openai.services.async.VideoServiceAsync
2526
import com.openai.services.async.WebhookServiceAsync
2627
import java.util.function.Consumer
2728

@@ -101,6 +102,8 @@ interface OpenAIClientAsync {
101102

102103
fun containers(): ContainerServiceAsync
103104

105+
fun videos(): VideoServiceAsync
106+
104107
/**
105108
* Closes this client, relinquishing any underlying resources.
106109
*
@@ -165,5 +168,7 @@ interface OpenAIClientAsync {
165168
fun evals(): EvalServiceAsync.WithRawResponse
166169

167170
fun containers(): ContainerServiceAsync.WithRawResponse
171+
172+
fun videos(): VideoServiceAsync.WithRawResponse
168173
}
169174
}

openai-java-core/src/main/kotlin/com/openai/client/OpenAIClientAsyncImpl.kt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ import com.openai.services.async.UploadServiceAsync
4242
import com.openai.services.async.UploadServiceAsyncImpl
4343
import com.openai.services.async.VectorStoreServiceAsync
4444
import com.openai.services.async.VectorStoreServiceAsyncImpl
45+
import com.openai.services.async.VideoServiceAsync
46+
import com.openai.services.async.VideoServiceAsyncImpl
4547
import com.openai.services.async.WebhookServiceAsync
4648
import com.openai.services.async.WebhookServiceAsyncImpl
4749
import java.util.function.Consumer
@@ -135,6 +137,10 @@ class OpenAIClientAsyncImpl(private val clientOptions: ClientOptions) : OpenAICl
135137
ContainerServiceAsyncImpl(clientOptionsWithUserAgent)
136138
}
137139

140+
private val videos: VideoServiceAsync by lazy {
141+
VideoServiceAsyncImpl(clientOptionsWithUserAgent)
142+
}
143+
138144
override fun sync(): OpenAIClient = sync
139145

140146
override fun withRawResponse(): OpenAIClientAsync.WithRawResponse = withRawResponse
@@ -182,6 +188,8 @@ class OpenAIClientAsyncImpl(private val clientOptions: ClientOptions) : OpenAICl
182188

183189
override fun containers(): ContainerServiceAsync = containers
184190

191+
override fun videos(): VideoServiceAsync = videos
192+
185193
override fun close() = clientOptions.close()
186194

187195
class WithRawResponseImpl internal constructor(private val clientOptions: ClientOptions) :
@@ -267,6 +275,10 @@ class OpenAIClientAsyncImpl(private val clientOptions: ClientOptions) : OpenAICl
267275
ContainerServiceAsyncImpl.WithRawResponseImpl(clientOptions)
268276
}
269277

278+
private val videos: VideoServiceAsync.WithRawResponse by lazy {
279+
VideoServiceAsyncImpl.WithRawResponseImpl(clientOptions)
280+
}
281+
270282
override fun withOptions(
271283
modifier: Consumer<ClientOptions.Builder>
272284
): OpenAIClientAsync.WithRawResponse =
@@ -313,5 +325,7 @@ class OpenAIClientAsyncImpl(private val clientOptions: ClientOptions) : OpenAICl
313325
override fun evals(): EvalServiceAsync.WithRawResponse = evals
314326

315327
override fun containers(): ContainerServiceAsync.WithRawResponse = containers
328+
329+
override fun videos(): VideoServiceAsync.WithRawResponse = videos
316330
}
317331
}

openai-java-core/src/main/kotlin/com/openai/client/OpenAIClientImpl.kt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ import com.openai.services.blocking.UploadService
4242
import com.openai.services.blocking.UploadServiceImpl
4343
import com.openai.services.blocking.VectorStoreService
4444
import com.openai.services.blocking.VectorStoreServiceImpl
45+
import com.openai.services.blocking.VideoService
46+
import com.openai.services.blocking.VideoServiceImpl
4547
import com.openai.services.blocking.WebhookService
4648
import com.openai.services.blocking.WebhookServiceImpl
4749
import java.util.function.Consumer
@@ -121,6 +123,8 @@ class OpenAIClientImpl(private val clientOptions: ClientOptions) : OpenAIClient
121123
ContainerServiceImpl(clientOptionsWithUserAgent)
122124
}
123125

126+
private val videos: VideoService by lazy { VideoServiceImpl(clientOptionsWithUserAgent) }
127+
124128
override fun async(): OpenAIClientAsync = async
125129

126130
override fun withRawResponse(): OpenAIClient.WithRawResponse = withRawResponse
@@ -168,6 +172,8 @@ class OpenAIClientImpl(private val clientOptions: ClientOptions) : OpenAIClient
168172

169173
override fun containers(): ContainerService = containers
170174

175+
override fun videos(): VideoService = videos
176+
171177
override fun close() = clientOptions.close()
172178

173179
class WithRawResponseImpl internal constructor(private val clientOptions: ClientOptions) :
@@ -253,6 +259,10 @@ class OpenAIClientImpl(private val clientOptions: ClientOptions) : OpenAIClient
253259
ContainerServiceImpl.WithRawResponseImpl(clientOptions)
254260
}
255261

262+
private val videos: VideoService.WithRawResponse by lazy {
263+
VideoServiceImpl.WithRawResponseImpl(clientOptions)
264+
}
265+
256266
override fun withOptions(
257267
modifier: Consumer<ClientOptions.Builder>
258268
): OpenAIClient.WithRawResponse =
@@ -299,5 +309,7 @@ class OpenAIClientImpl(private val clientOptions: ClientOptions) : OpenAIClient
299309
override fun evals(): EvalService.WithRawResponse = evals
300310

301311
override fun containers(): ContainerService.WithRawResponse = containers
312+
313+
override fun videos(): VideoService.WithRawResponse = videos
302314
}
303315
}

openai-java-core/src/main/kotlin/com/openai/models/AllModels.kt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,10 @@ private constructor(
254254

255255
@JvmField val GPT_5_CODEX = of("gpt-5-codex")
256256

257+
@JvmField val GPT_5_PRO = of("gpt-5-pro")
258+
259+
@JvmField val GPT_5_PRO_2025_10_06 = of("gpt-5-pro-2025-10-06")
260+
257261
@JvmStatic fun of(value: String) = ResponsesOnlyModel(JsonField.of(value))
258262
}
259263

@@ -270,6 +274,8 @@ private constructor(
270274
COMPUTER_USE_PREVIEW,
271275
COMPUTER_USE_PREVIEW_2025_03_11,
272276
GPT_5_CODEX,
277+
GPT_5_PRO,
278+
GPT_5_PRO_2025_10_06,
273279
}
274280

275281
/**
@@ -293,6 +299,8 @@ private constructor(
293299
COMPUTER_USE_PREVIEW,
294300
COMPUTER_USE_PREVIEW_2025_03_11,
295301
GPT_5_CODEX,
302+
GPT_5_PRO,
303+
GPT_5_PRO_2025_10_06,
296304
/**
297305
* An enum member indicating that [ResponsesOnlyModel] was instantiated with an unknown
298306
* value.
@@ -320,6 +328,8 @@ private constructor(
320328
COMPUTER_USE_PREVIEW -> Value.COMPUTER_USE_PREVIEW
321329
COMPUTER_USE_PREVIEW_2025_03_11 -> Value.COMPUTER_USE_PREVIEW_2025_03_11
322330
GPT_5_CODEX -> Value.GPT_5_CODEX
331+
GPT_5_PRO -> Value.GPT_5_PRO
332+
GPT_5_PRO_2025_10_06 -> Value.GPT_5_PRO_2025_10_06
323333
else -> Value._UNKNOWN
324334
}
325335

@@ -345,6 +355,8 @@ private constructor(
345355
COMPUTER_USE_PREVIEW -> Known.COMPUTER_USE_PREVIEW
346356
COMPUTER_USE_PREVIEW_2025_03_11 -> Known.COMPUTER_USE_PREVIEW_2025_03_11
347357
GPT_5_CODEX -> Known.GPT_5_CODEX
358+
GPT_5_PRO -> Known.GPT_5_PRO
359+
GPT_5_PRO_2025_10_06 -> Known.GPT_5_PRO_2025_10_06
348360
else -> throw OpenAIInvalidDataException("Unknown ResponsesOnlyModel: $value")
349361
}
350362

openai-java-core/src/main/kotlin/com/openai/models/ResponsesModel.kt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,10 @@ private constructor(
253253

254254
@JvmField val GPT_5_CODEX = of("gpt-5-codex")
255255

256+
@JvmField val GPT_5_PRO = of("gpt-5-pro")
257+
258+
@JvmField val GPT_5_PRO_2025_10_06 = of("gpt-5-pro-2025-10-06")
259+
256260
@JvmStatic fun of(value: String) = ResponsesOnlyModel(JsonField.of(value))
257261
}
258262

@@ -269,6 +273,8 @@ private constructor(
269273
COMPUTER_USE_PREVIEW,
270274
COMPUTER_USE_PREVIEW_2025_03_11,
271275
GPT_5_CODEX,
276+
GPT_5_PRO,
277+
GPT_5_PRO_2025_10_06,
272278
}
273279

274280
/**
@@ -292,6 +298,8 @@ private constructor(
292298
COMPUTER_USE_PREVIEW,
293299
COMPUTER_USE_PREVIEW_2025_03_11,
294300
GPT_5_CODEX,
301+
GPT_5_PRO,
302+
GPT_5_PRO_2025_10_06,
295303
/**
296304
* An enum member indicating that [ResponsesOnlyModel] was instantiated with an unknown
297305
* value.
@@ -319,6 +327,8 @@ private constructor(
319327
COMPUTER_USE_PREVIEW -> Value.COMPUTER_USE_PREVIEW
320328
COMPUTER_USE_PREVIEW_2025_03_11 -> Value.COMPUTER_USE_PREVIEW_2025_03_11
321329
GPT_5_CODEX -> Value.GPT_5_CODEX
330+
GPT_5_PRO -> Value.GPT_5_PRO
331+
GPT_5_PRO_2025_10_06 -> Value.GPT_5_PRO_2025_10_06
322332
else -> Value._UNKNOWN
323333
}
324334

@@ -344,6 +354,8 @@ private constructor(
344354
COMPUTER_USE_PREVIEW -> Known.COMPUTER_USE_PREVIEW
345355
COMPUTER_USE_PREVIEW_2025_03_11 -> Known.COMPUTER_USE_PREVIEW_2025_03_11
346356
GPT_5_CODEX -> Known.GPT_5_CODEX
357+
GPT_5_PRO -> Known.GPT_5_PRO
358+
GPT_5_PRO_2025_10_06 -> Known.GPT_5_PRO_2025_10_06
347359
else -> throw OpenAIInvalidDataException("Unknown ResponsesOnlyModel: $value")
348360
}
349361

0 commit comments

Comments
 (0)