diff --git a/.github/workflows/create-releases.yml b/.github/workflows/create-releases.yml
index f7b805807..6f33bfbfd 100644
--- a/.github/workflows/create-releases.yml
+++ b/.github/workflows/create-releases.yml
@@ -73,7 +73,7 @@ jobs:
export -- GPG_SIGNING_KEY_ID
printenv -- GPG_SIGNING_KEY | gpg --batch --passphrase-fd 3 --import 3<<< "$GPG_SIGNING_PASSWORD"
GPG_SIGNING_KEY_ID="$(gpg --with-colons --list-keys | awk -F : -- '/^pub:/ { getline; print "0x" substr($10, length($10) - 7) }')"
- ./gradlew publishAndReleaseToMavenCentral -Dorg.gradle.jvmargs="-Xmx8g" --stacktrace -PmavenCentralUsername="$SONATYPE_USERNAME" -PmavenCentralPassword="$SONATYPE_PASSWORD" --no-configuration-cache
+ ./gradlew publishAndReleaseToMavenCentral --stacktrace -PmavenCentralUsername="$SONATYPE_USERNAME" -PmavenCentralPassword="$SONATYPE_PASSWORD" --no-configuration-cache
env:
SONATYPE_USERNAME: ${{ secrets.OPENAI_SONATYPE_USERNAME || secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.OPENAI_SONATYPE_PASSWORD || secrets.SONATYPE_PASSWORD }}
diff --git a/.github/workflows/publish-sonatype.yml b/.github/workflows/publish-sonatype.yml
index 55c74a194..74d7139c6 100644
--- a/.github/workflows/publish-sonatype.yml
+++ b/.github/workflows/publish-sonatype.yml
@@ -60,7 +60,7 @@ jobs:
export -- GPG_SIGNING_KEY_ID
printenv -- GPG_SIGNING_KEY | gpg --batch --passphrase-fd 3 --import 3<<< "$GPG_SIGNING_PASSWORD"
GPG_SIGNING_KEY_ID="$(gpg --with-colons --list-keys | awk -F : -- '/^pub:/ { getline; print "0x" substr($10, length($10) - 7) }')"
- ./gradlew publishAndReleaseToMavenCentral -Dorg.gradle.jvmargs="-Xmx8g" --stacktrace -PmavenCentralUsername="$SONATYPE_USERNAME" -PmavenCentralPassword="$SONATYPE_PASSWORD" --no-configuration-cache
+ ./gradlew publishAndReleaseToMavenCentral --stacktrace -PmavenCentralUsername="$SONATYPE_USERNAME" -PmavenCentralPassword="$SONATYPE_PASSWORD" --no-configuration-cache
env:
SONATYPE_USERNAME: ${{ secrets.OPENAI_SONATYPE_USERNAME || secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.OPENAI_SONATYPE_PASSWORD || secrets.SONATYPE_PASSWORD }}
diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index 9d7db69f9..1f73031b8 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "3.1.2"
+ ".": "3.2.0"
}
\ No newline at end of file
diff --git a/.stats.yml b/.stats.yml
index d4994342f..f2d5304a5 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
-configured_endpoints: 111
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-7ef7a457c3bf05364e66e48c9ca34f31bfef1f6c9b7c15b1812346105e0abb16.yml
-openapi_spec_hash: a2b1f5d8fbb62175c93b0ebea9f10063
-config_hash: 4870312b04f48fd717ea4151053e7fb9
+configured_endpoints: 119
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-ddbdf9343316047e8a773c54fb24e4a8d225955e202a1888fde6f9c8898ebf98.yml
+openapi_spec_hash: 9802f6dd381558466c897f6e387e06ca
+config_hash: fe0ea26680ac2075a6cd66416aefe7db
diff --git a/CHANGELOG.md b/CHANGELOG.md
index fd6798f1a..ee826384a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,28 @@
# Changelog
+## 3.2.0 (2025-08-22)
+
+Full Changelog: [v3.1.2...v3.2.0](https://github.com/openai/openai-java/compare/v3.1.2...v3.2.0)
+
+### Features
+
+* **api:** Add connectors support for MCP tool ([ee175a9](https://github.com/openai/openai-java/commit/ee175a98a1ed4f1e939c301dd5bf62f10e367c6c))
+* **api:** adding support for /v1/conversations to the API ([9d088c5](https://github.com/openai/openai-java/commit/9d088c5d77c450a2e1371a8293e9c05ebf102937))
+
+
+### Bug Fixes
+
+* update singularization rules ([7cbc830](https://github.com/openai/openai-java/commit/7cbc8305e4da79560969ba365f6f33427688bc50))
+
+
+### Chores
+
+* add missing delegate methods ([557e9ee](https://github.com/openai/openai-java/commit/557e9ee897e11c95788300922e8094383eb1dd97))
+* **ci:** reduce log noise ([9e91952](https://github.com/openai/openai-java/commit/9e9195269a225cdbaba81e2dd6ee26caba407d00))
+* **client:** refactor closing / shutdown ([94cdfcd](https://github.com/openai/openai-java/commit/94cdfcdf57225ee606acf51ffe3e0b6a4321f7e6))
+* **internal:** support running formatters directly ([6242da5](https://github.com/openai/openai-java/commit/6242da594134e736470c006bc1af6b38ce757705))
+* remove memory upper bound from publishing step ([fdc5fdd](https://github.com/openai/openai-java/commit/fdc5fdd3969d2ecc3d6df1546b34167b63074991))
+
## 3.1.2 (2025-08-20)
Full Changelog: [v3.1.1...v3.1.2](https://github.com/openai/openai-java/compare/v3.1.1...v3.1.2)
diff --git a/README.md b/README.md
index 4b10773ef..3c2ea9a32 100644
--- a/README.md
+++ b/README.md
@@ -2,8 +2,8 @@
-[](https://central.sonatype.com/artifact/com.openai/openai-java/3.1.2)
-[](https://javadoc.io/doc/com.openai/openai-java/3.1.2)
+[](https://central.sonatype.com/artifact/com.openai/openai-java/3.2.0)
+[](https://javadoc.io/doc/com.openai/openai-java/3.2.0)
@@ -11,7 +11,7 @@ The OpenAI Java SDK provides convenient access to the [OpenAI REST API](https://
-The REST API documentation can be found on [platform.openai.com](https://platform.openai.com/docs). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.openai/openai-java/3.1.2).
+The REST API documentation can be found on [platform.openai.com](https://platform.openai.com/docs). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.openai/openai-java/3.2.0).
@@ -24,7 +24,7 @@ The REST API documentation can be found on [platform.openai.com](https://platfor
### Gradle
```kotlin
-implementation("com.openai:openai-java:3.1.2")
+implementation("com.openai:openai-java:3.2.0")
```
### Maven
@@ -33,7 +33,7 @@ implementation("com.openai:openai-java:3.1.2")
com.openai
openai-java
- 3.1.2
+ 3.2.0
```
@@ -1330,7 +1330,7 @@ If you're using Spring Boot, then you can use the SDK's [Spring Boot starter](ht
#### Gradle
```kotlin
-implementation("com.openai:openai-java-spring-boot-starter:3.1.2")
+implementation("com.openai:openai-java-spring-boot-starter:3.2.0")
```
#### Maven
@@ -1339,7 +1339,7 @@ implementation("com.openai:openai-java-spring-boot-starter:3.1.2")
com.openai
openai-java-spring-boot-starter
- 3.1.2
+ 3.2.0
```
diff --git a/build.gradle.kts b/build.gradle.kts
index 7108208f7..435360279 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -8,7 +8,7 @@ repositories {
allprojects {
group = "com.openai"
- version = "3.1.2" // x-release-please-version
+ version = "3.2.0" // x-release-please-version
}
subprojects {
diff --git a/openai-java-client-okhttp/src/main/kotlin/com/openai/client/okhttp/OpenAIOkHttpClient.kt b/openai-java-client-okhttp/src/main/kotlin/com/openai/client/okhttp/OpenAIOkHttpClient.kt
index 61e6fcd13..a67023030 100644
--- a/openai-java-client-okhttp/src/main/kotlin/com/openai/client/okhttp/OpenAIOkHttpClient.kt
+++ b/openai-java-client-okhttp/src/main/kotlin/com/openai/client/okhttp/OpenAIOkHttpClient.kt
@@ -128,6 +128,8 @@ class OpenAIOkHttpClient private constructor() {
* The executor to use for running [AsyncStreamResponse.Handler] callbacks.
*
* Defaults to a dedicated cached thread pool.
+ *
+ * This class takes ownership of the executor and shuts it down, if possible, when closed.
*/
fun streamHandlerExecutor(streamHandlerExecutor: Executor) = apply {
clientOptions.streamHandlerExecutor(streamHandlerExecutor)
@@ -234,33 +236,33 @@ class OpenAIOkHttpClient private constructor() {
fun putHeader(name: String, value: String) = apply { clientOptions.putHeader(name, value) }
- fun putHeaders(name: String, values: Iterable) = apply {
- clientOptions.putHeaders(name, values)
+ fun putheaders(name: String, values: Iterable) = apply {
+ clientOptions.putheaders(name, values)
}
- fun putAllHeaders(headers: Headers) = apply { clientOptions.putAllHeaders(headers) }
+ fun putAllheaders(headers: Headers) = apply { clientOptions.putAllheaders(headers) }
- fun putAllHeaders(headers: Map>) = apply {
- clientOptions.putAllHeaders(headers)
+ fun putAllheaders(headers: Map>) = apply {
+ clientOptions.putAllheaders(headers)
}
- fun replaceHeaders(name: String, value: String) = apply {
- clientOptions.replaceHeaders(name, value)
+ fun replaceheaders(name: String, value: String) = apply {
+ clientOptions.replaceheaders(name, value)
}
- fun replaceHeaders(name: String, values: Iterable) = apply {
- clientOptions.replaceHeaders(name, values)
+ fun replaceheaders(name: String, values: Iterable) = apply {
+ clientOptions.replaceheaders(name, values)
}
- fun replaceAllHeaders(headers: Headers) = apply { clientOptions.replaceAllHeaders(headers) }
+ fun replaceAllheaders(headers: Headers) = apply { clientOptions.replaceAllheaders(headers) }
- fun replaceAllHeaders(headers: Map>) = apply {
- clientOptions.replaceAllHeaders(headers)
+ fun replaceAllheaders(headers: Map>) = apply {
+ clientOptions.replaceAllheaders(headers)
}
- fun removeHeaders(name: String) = apply { clientOptions.removeHeaders(name) }
+ fun removeheaders(name: String) = apply { clientOptions.removeheaders(name) }
- fun removeAllHeaders(names: Set) = apply { clientOptions.removeAllHeaders(names) }
+ fun removeAllheaders(names: Set) = apply { clientOptions.removeAllheaders(names) }
fun queryParams(queryParams: QueryParams) = apply { clientOptions.queryParams(queryParams) }
@@ -272,38 +274,38 @@ class OpenAIOkHttpClient private constructor() {
clientOptions.putQueryParam(key, value)
}
- fun putQueryParams(key: String, values: Iterable) = apply {
- clientOptions.putQueryParams(key, values)
+ fun putquery_params(key: String, values: Iterable) = apply {
+ clientOptions.putquery_params(key, values)
}
- fun putAllQueryParams(queryParams: QueryParams) = apply {
- clientOptions.putAllQueryParams(queryParams)
+ fun putAllquery_params(queryParams: QueryParams) = apply {
+ clientOptions.putAllquery_params(queryParams)
}
- fun putAllQueryParams(queryParams: Map>) = apply {
- clientOptions.putAllQueryParams(queryParams)
+ fun putAllquery_params(queryParams: Map>) = apply {
+ clientOptions.putAllquery_params(queryParams)
}
- fun replaceQueryParams(key: String, value: String) = apply {
- clientOptions.replaceQueryParams(key, value)
+ fun replacequery_params(key: String, value: String) = apply {
+ clientOptions.replacequery_params(key, value)
}
- fun replaceQueryParams(key: String, values: Iterable) = apply {
- clientOptions.replaceQueryParams(key, values)
+ fun replacequery_params(key: String, values: Iterable) = apply {
+ clientOptions.replacequery_params(key, values)
}
- fun replaceAllQueryParams(queryParams: QueryParams) = apply {
- clientOptions.replaceAllQueryParams(queryParams)
+ fun replaceAllquery_params(queryParams: QueryParams) = apply {
+ clientOptions.replaceAllquery_params(queryParams)
}
- fun replaceAllQueryParams(queryParams: Map>) = apply {
- clientOptions.replaceAllQueryParams(queryParams)
+ fun replaceAllquery_params(queryParams: Map>) = apply {
+ clientOptions.replaceAllquery_params(queryParams)
}
- fun removeQueryParams(key: String) = apply { clientOptions.removeQueryParams(key) }
+ fun removequery_params(key: String) = apply { clientOptions.removequery_params(key) }
- fun removeAllQueryParams(keys: Set) = apply {
- clientOptions.removeAllQueryParams(keys)
+ fun removeAllquery_params(keys: Set) = apply {
+ clientOptions.removeAllquery_params(keys)
}
/**
diff --git a/openai-java-client-okhttp/src/main/kotlin/com/openai/client/okhttp/OpenAIOkHttpClientAsync.kt b/openai-java-client-okhttp/src/main/kotlin/com/openai/client/okhttp/OpenAIOkHttpClientAsync.kt
index c840742ec..a9883dba5 100644
--- a/openai-java-client-okhttp/src/main/kotlin/com/openai/client/okhttp/OpenAIOkHttpClientAsync.kt
+++ b/openai-java-client-okhttp/src/main/kotlin/com/openai/client/okhttp/OpenAIOkHttpClientAsync.kt
@@ -128,6 +128,8 @@ class OpenAIOkHttpClientAsync private constructor() {
* The executor to use for running [AsyncStreamResponse.Handler] callbacks.
*
* Defaults to a dedicated cached thread pool.
+ *
+ * This class takes ownership of the executor and shuts it down, if possible, when closed.
*/
fun streamHandlerExecutor(streamHandlerExecutor: Executor) = apply {
clientOptions.streamHandlerExecutor(streamHandlerExecutor)
@@ -234,33 +236,33 @@ class OpenAIOkHttpClientAsync private constructor() {
fun putHeader(name: String, value: String) = apply { clientOptions.putHeader(name, value) }
- fun putHeaders(name: String, values: Iterable) = apply {
- clientOptions.putHeaders(name, values)
+ fun putheaders(name: String, values: Iterable) = apply {
+ clientOptions.putheaders(name, values)
}
- fun putAllHeaders(headers: Headers) = apply { clientOptions.putAllHeaders(headers) }
+ fun putAllheaders(headers: Headers) = apply { clientOptions.putAllheaders(headers) }
- fun putAllHeaders(headers: Map>) = apply {
- clientOptions.putAllHeaders(headers)
+ fun putAllheaders(headers: Map>) = apply {
+ clientOptions.putAllheaders(headers)
}
- fun replaceHeaders(name: String, value: String) = apply {
- clientOptions.replaceHeaders(name, value)
+ fun replaceheaders(name: String, value: String) = apply {
+ clientOptions.replaceheaders(name, value)
}
- fun replaceHeaders(name: String, values: Iterable) = apply {
- clientOptions.replaceHeaders(name, values)
+ fun replaceheaders(name: String, values: Iterable) = apply {
+ clientOptions.replaceheaders(name, values)
}
- fun replaceAllHeaders(headers: Headers) = apply { clientOptions.replaceAllHeaders(headers) }
+ fun replaceAllheaders(headers: Headers) = apply { clientOptions.replaceAllheaders(headers) }
- fun replaceAllHeaders(headers: Map>) = apply {
- clientOptions.replaceAllHeaders(headers)
+ fun replaceAllheaders(headers: Map>) = apply {
+ clientOptions.replaceAllheaders(headers)
}
- fun removeHeaders(name: String) = apply { clientOptions.removeHeaders(name) }
+ fun removeheaders(name: String) = apply { clientOptions.removeheaders(name) }
- fun removeAllHeaders(names: Set) = apply { clientOptions.removeAllHeaders(names) }
+ fun removeAllheaders(names: Set) = apply { clientOptions.removeAllheaders(names) }
fun queryParams(queryParams: QueryParams) = apply { clientOptions.queryParams(queryParams) }
@@ -272,38 +274,38 @@ class OpenAIOkHttpClientAsync private constructor() {
clientOptions.putQueryParam(key, value)
}
- fun putQueryParams(key: String, values: Iterable) = apply {
- clientOptions.putQueryParams(key, values)
+ fun putquery_params(key: String, values: Iterable) = apply {
+ clientOptions.putquery_params(key, values)
}
- fun putAllQueryParams(queryParams: QueryParams) = apply {
- clientOptions.putAllQueryParams(queryParams)
+ fun putAllquery_params(queryParams: QueryParams) = apply {
+ clientOptions.putAllquery_params(queryParams)
}
- fun putAllQueryParams(queryParams: Map>) = apply {
- clientOptions.putAllQueryParams(queryParams)
+ fun putAllquery_params(queryParams: Map>) = apply {
+ clientOptions.putAllquery_params(queryParams)
}
- fun replaceQueryParams(key: String, value: String) = apply {
- clientOptions.replaceQueryParams(key, value)
+ fun replacequery_params(key: String, value: String) = apply {
+ clientOptions.replacequery_params(key, value)
}
- fun replaceQueryParams(key: String, values: Iterable) = apply {
- clientOptions.replaceQueryParams(key, values)
+ fun replacequery_params(key: String, values: Iterable) = apply {
+ clientOptions.replacequery_params(key, values)
}
- fun replaceAllQueryParams(queryParams: QueryParams) = apply {
- clientOptions.replaceAllQueryParams(queryParams)
+ fun replaceAllquery_params(queryParams: QueryParams) = apply {
+ clientOptions.replaceAllquery_params(queryParams)
}
- fun replaceAllQueryParams(queryParams: Map>) = apply {
- clientOptions.replaceAllQueryParams(queryParams)
+ fun replaceAllquery_params(queryParams: Map>) = apply {
+ clientOptions.replaceAllquery_params(queryParams)
}
- fun removeQueryParams(key: String) = apply { clientOptions.removeQueryParams(key) }
+ fun removequery_params(key: String) = apply { clientOptions.removequery_params(key) }
- fun removeAllQueryParams(keys: Set) = apply {
- clientOptions.removeAllQueryParams(keys)
+ fun removeAllquery_params(keys: Set) = apply {
+ clientOptions.removeAllquery_params(keys)
}
/**
diff --git a/openai-java-core/src/main/kotlin/com/openai/client/OpenAIClient.kt b/openai-java-core/src/main/kotlin/com/openai/client/OpenAIClient.kt
index 692262752..5b6e67724 100644
--- a/openai-java-core/src/main/kotlin/com/openai/client/OpenAIClient.kt
+++ b/openai-java-core/src/main/kotlin/com/openai/client/OpenAIClient.kt
@@ -9,6 +9,7 @@ import com.openai.services.blocking.BetaService
import com.openai.services.blocking.ChatService
import com.openai.services.blocking.CompletionService
import com.openai.services.blocking.ContainerService
+import com.openai.services.blocking.ConversationService
import com.openai.services.blocking.EmbeddingService
import com.openai.services.blocking.EvalService
import com.openai.services.blocking.FileService
@@ -91,6 +92,8 @@ interface OpenAIClient {
fun responses(): ResponseService
+ fun conversations(): ConversationService
+
fun evals(): EvalService
fun containers(): ContainerService
@@ -150,6 +153,8 @@ interface OpenAIClient {
fun responses(): ResponseService.WithRawResponse
+ fun conversations(): ConversationService.WithRawResponse
+
fun evals(): EvalService.WithRawResponse
fun containers(): ContainerService.WithRawResponse
diff --git a/openai-java-core/src/main/kotlin/com/openai/client/OpenAIClientAsync.kt b/openai-java-core/src/main/kotlin/com/openai/client/OpenAIClientAsync.kt
index a0369ca4a..00c1d5d59 100644
--- a/openai-java-core/src/main/kotlin/com/openai/client/OpenAIClientAsync.kt
+++ b/openai-java-core/src/main/kotlin/com/openai/client/OpenAIClientAsync.kt
@@ -9,6 +9,7 @@ import com.openai.services.async.BetaServiceAsync
import com.openai.services.async.ChatServiceAsync
import com.openai.services.async.CompletionServiceAsync
import com.openai.services.async.ContainerServiceAsync
+import com.openai.services.async.ConversationServiceAsync
import com.openai.services.async.EmbeddingServiceAsync
import com.openai.services.async.EvalServiceAsync
import com.openai.services.async.FileServiceAsync
@@ -91,6 +92,8 @@ interface OpenAIClientAsync {
fun responses(): ResponseServiceAsync
+ fun conversations(): ConversationServiceAsync
+
fun evals(): EvalServiceAsync
fun containers(): ContainerServiceAsync
@@ -152,6 +155,8 @@ interface OpenAIClientAsync {
fun responses(): ResponseServiceAsync.WithRawResponse
+ fun conversations(): ConversationServiceAsync.WithRawResponse
+
fun evals(): EvalServiceAsync.WithRawResponse
fun containers(): ContainerServiceAsync.WithRawResponse
diff --git a/openai-java-core/src/main/kotlin/com/openai/client/OpenAIClientAsyncImpl.kt b/openai-java-core/src/main/kotlin/com/openai/client/OpenAIClientAsyncImpl.kt
index 73edf7d11..8dca941d0 100644
--- a/openai-java-core/src/main/kotlin/com/openai/client/OpenAIClientAsyncImpl.kt
+++ b/openai-java-core/src/main/kotlin/com/openai/client/OpenAIClientAsyncImpl.kt
@@ -16,6 +16,8 @@ import com.openai.services.async.CompletionServiceAsync
import com.openai.services.async.CompletionServiceAsyncImpl
import com.openai.services.async.ContainerServiceAsync
import com.openai.services.async.ContainerServiceAsyncImpl
+import com.openai.services.async.ConversationServiceAsync
+import com.openai.services.async.ConversationServiceAsyncImpl
import com.openai.services.async.EmbeddingServiceAsync
import com.openai.services.async.EmbeddingServiceAsyncImpl
import com.openai.services.async.EvalServiceAsync
@@ -117,6 +119,10 @@ class OpenAIClientAsyncImpl(private val clientOptions: ClientOptions) : OpenAICl
ResponseServiceAsyncImpl(clientOptionsWithUserAgent)
}
+ private val conversations: ConversationServiceAsync by lazy {
+ ConversationServiceAsyncImpl(clientOptionsWithUserAgent)
+ }
+
private val evals: EvalServiceAsync by lazy { EvalServiceAsyncImpl(clientOptionsWithUserAgent) }
private val containers: ContainerServiceAsync by lazy {
@@ -162,11 +168,13 @@ class OpenAIClientAsyncImpl(private val clientOptions: ClientOptions) : OpenAICl
override fun responses(): ResponseServiceAsync = responses
+ override fun conversations(): ConversationServiceAsync = conversations
+
override fun evals(): EvalServiceAsync = evals
override fun containers(): ContainerServiceAsync = containers
- override fun close() = clientOptions.httpClient.close()
+ override fun close() = clientOptions.close()
class WithRawResponseImpl internal constructor(private val clientOptions: ClientOptions) :
OpenAIClientAsync.WithRawResponse {
@@ -235,6 +243,10 @@ class OpenAIClientAsyncImpl(private val clientOptions: ClientOptions) : OpenAICl
ResponseServiceAsyncImpl.WithRawResponseImpl(clientOptions)
}
+ private val conversations: ConversationServiceAsync.WithRawResponse by lazy {
+ ConversationServiceAsyncImpl.WithRawResponseImpl(clientOptions)
+ }
+
private val evals: EvalServiceAsync.WithRawResponse by lazy {
EvalServiceAsyncImpl.WithRawResponseImpl(clientOptions)
}
@@ -282,6 +294,8 @@ class OpenAIClientAsyncImpl(private val clientOptions: ClientOptions) : OpenAICl
override fun responses(): ResponseServiceAsync.WithRawResponse = responses
+ override fun conversations(): ConversationServiceAsync.WithRawResponse = conversations
+
override fun evals(): EvalServiceAsync.WithRawResponse = evals
override fun containers(): ContainerServiceAsync.WithRawResponse = containers
diff --git a/openai-java-core/src/main/kotlin/com/openai/client/OpenAIClientImpl.kt b/openai-java-core/src/main/kotlin/com/openai/client/OpenAIClientImpl.kt
index c54e85de5..c7d4d9420 100644
--- a/openai-java-core/src/main/kotlin/com/openai/client/OpenAIClientImpl.kt
+++ b/openai-java-core/src/main/kotlin/com/openai/client/OpenAIClientImpl.kt
@@ -16,6 +16,8 @@ import com.openai.services.blocking.CompletionService
import com.openai.services.blocking.CompletionServiceImpl
import com.openai.services.blocking.ContainerService
import com.openai.services.blocking.ContainerServiceImpl
+import com.openai.services.blocking.ConversationService
+import com.openai.services.blocking.ConversationServiceImpl
import com.openai.services.blocking.EmbeddingService
import com.openai.services.blocking.EmbeddingServiceImpl
import com.openai.services.blocking.EvalService
@@ -103,6 +105,10 @@ class OpenAIClientImpl(private val clientOptions: ClientOptions) : OpenAIClient
ResponseServiceImpl(clientOptionsWithUserAgent)
}
+ private val conversations: ConversationService by lazy {
+ ConversationServiceImpl(clientOptionsWithUserAgent)
+ }
+
private val evals: EvalService by lazy { EvalServiceImpl(clientOptionsWithUserAgent) }
private val containers: ContainerService by lazy {
@@ -148,11 +154,13 @@ class OpenAIClientImpl(private val clientOptions: ClientOptions) : OpenAIClient
override fun responses(): ResponseService = responses
+ override fun conversations(): ConversationService = conversations
+
override fun evals(): EvalService = evals
override fun containers(): ContainerService = containers
- override fun close() = clientOptions.httpClient.close()
+ override fun close() = clientOptions.close()
class WithRawResponseImpl internal constructor(private val clientOptions: ClientOptions) :
OpenAIClient.WithRawResponse {
@@ -221,6 +229,10 @@ class OpenAIClientImpl(private val clientOptions: ClientOptions) : OpenAIClient
ResponseServiceImpl.WithRawResponseImpl(clientOptions)
}
+ private val conversations: ConversationService.WithRawResponse by lazy {
+ ConversationServiceImpl.WithRawResponseImpl(clientOptions)
+ }
+
private val evals: EvalService.WithRawResponse by lazy {
EvalServiceImpl.WithRawResponseImpl(clientOptions)
}
@@ -268,6 +280,8 @@ class OpenAIClientImpl(private val clientOptions: ClientOptions) : OpenAIClient
override fun responses(): ResponseService.WithRawResponse = responses
+ override fun conversations(): ConversationService.WithRawResponse = conversations
+
override fun evals(): EvalService.WithRawResponse = evals
override fun containers(): ContainerService.WithRawResponse = containers
diff --git a/openai-java-core/src/main/kotlin/com/openai/core/ClientOptions.kt b/openai-java-core/src/main/kotlin/com/openai/core/ClientOptions.kt
index e7e4f4221..e750dd1b9 100644
--- a/openai-java-core/src/main/kotlin/com/openai/core/ClientOptions.kt
+++ b/openai-java-core/src/main/kotlin/com/openai/core/ClientOptions.kt
@@ -19,6 +19,7 @@ import java.time.Clock
import java.time.Duration
import java.util.Optional
import java.util.concurrent.Executor
+import java.util.concurrent.ExecutorService
import java.util.concurrent.Executors
import java.util.concurrent.ThreadFactory
import java.util.concurrent.atomic.AtomicLong
@@ -32,6 +33,8 @@ private constructor(
* The HTTP client to use in the SDK.
*
* Use the one published in `openai-java-client-okhttp` or implement your own.
+ *
+ * This class takes ownership of the client and closes it when closed.
*/
@get:JvmName("httpClient") val httpClient: HttpClient,
/**
@@ -53,6 +56,8 @@ private constructor(
* The executor to use for running [AsyncStreamResponse.Handler] callbacks.
*
* Defaults to a dedicated cached thread pool.
+ *
+ * This class takes ownership of the executor and shuts it down, if possible, when closed.
*/
@get:JvmName("streamHandlerExecutor") val streamHandlerExecutor: Executor,
/**
@@ -196,6 +201,8 @@ private constructor(
* The HTTP client to use in the SDK.
*
* Use the one published in `openai-java-client-okhttp` or implement your own.
+ *
+ * This class takes ownership of the client and closes it when closed.
*/
fun httpClient(httpClient: HttpClient) = apply {
this.httpClient = PhantomReachableClosingHttpClient(httpClient)
@@ -224,9 +231,14 @@ private constructor(
* The executor to use for running [AsyncStreamResponse.Handler] callbacks.
*
* Defaults to a dedicated cached thread pool.
+ *
+ * This class takes ownership of the executor and shuts it down, if possible, when closed.
*/
fun streamHandlerExecutor(streamHandlerExecutor: Executor) = apply {
- this.streamHandlerExecutor = streamHandlerExecutor
+ this.streamHandlerExecutor =
+ if (streamHandlerExecutor is ExecutorService)
+ PhantomReachableExecutorService(streamHandlerExecutor)
+ else streamHandlerExecutor
}
/**
@@ -324,83 +336,83 @@ private constructor(
fun headers(headers: Headers) = apply {
this.headers.clear()
- putAllHeaders(headers)
+ putAllheaders(headers)
}
fun headers(headers: Map>) = apply {
this.headers.clear()
- putAllHeaders(headers)
+ putAllheaders(headers)
}
fun putHeader(name: String, value: String) = apply { headers.put(name, value) }
- fun putHeaders(name: String, values: Iterable) = apply { headers.put(name, values) }
+ fun putheaders(name: String, values: Iterable) = apply { headers.put(name, values) }
- fun putAllHeaders(headers: Headers) = apply { this.headers.putAll(headers) }
+ fun putAllheaders(headers: Headers) = apply { this.headers.putAll(headers) }
- fun putAllHeaders(headers: Map>) = apply {
+ fun putAllheaders(headers: Map>) = apply {
this.headers.putAll(headers)
}
- fun replaceHeaders(name: String, value: String) = apply { headers.replace(name, value) }
+ fun replaceheaders(name: String, value: String) = apply { headers.replace(name, value) }
- fun replaceHeaders(name: String, values: Iterable) = apply {
+ fun replaceheaders(name: String, values: Iterable) = apply {
headers.replace(name, values)
}
- fun replaceAllHeaders(headers: Headers) = apply { this.headers.replaceAll(headers) }
+ fun replaceAllheaders(headers: Headers) = apply { this.headers.replaceAll(headers) }
- fun replaceAllHeaders(headers: Map>) = apply {
+ fun replaceAllheaders(headers: Map>) = apply {
this.headers.replaceAll(headers)
}
- fun removeHeaders(name: String) = apply { headers.remove(name) }
+ fun removeheaders(name: String) = apply { headers.remove(name) }
- fun removeAllHeaders(names: Set) = apply { headers.removeAll(names) }
+ fun removeAllheaders(names: Set) = apply { headers.removeAll(names) }
fun queryParams(queryParams: QueryParams) = apply {
this.queryParams.clear()
- putAllQueryParams(queryParams)
+ putAllquery_params(queryParams)
}
fun queryParams(queryParams: Map>) = apply {
this.queryParams.clear()
- putAllQueryParams(queryParams)
+ putAllquery_params(queryParams)
}
fun putQueryParam(key: String, value: String) = apply { queryParams.put(key, value) }
- fun putQueryParams(key: String, values: Iterable) = apply {
+ fun putquery_params(key: String, values: Iterable) = apply {
queryParams.put(key, values)
}
- fun putAllQueryParams(queryParams: QueryParams) = apply {
+ fun putAllquery_params(queryParams: QueryParams) = apply {
this.queryParams.putAll(queryParams)
}
- fun putAllQueryParams(queryParams: Map>) = apply {
+ fun putAllquery_params(queryParams: Map>) = apply {
this.queryParams.putAll(queryParams)
}
- fun replaceQueryParams(key: String, value: String) = apply {
+ fun replacequery_params(key: String, value: String) = apply {
queryParams.replace(key, value)
}
- fun replaceQueryParams(key: String, values: Iterable) = apply {
+ fun replacequery_params(key: String, values: Iterable) = apply {
queryParams.replace(key, values)
}
- fun replaceAllQueryParams(queryParams: QueryParams) = apply {
+ fun replaceAllquery_params(queryParams: QueryParams) = apply {
this.queryParams.replaceAll(queryParams)
}
- fun replaceAllQueryParams(queryParams: Map>) = apply {
+ fun replaceAllquery_params(queryParams: Map>) = apply {
this.queryParams.replaceAll(queryParams)
}
- fun removeQueryParams(key: String) = apply { queryParams.remove(key) }
+ fun removequery_params(key: String) = apply { queryParams.remove(key) }
- fun removeAllQueryParams(keys: Set) = apply { queryParams.removeAll(keys) }
+ fun removeAllquery_params(keys: Set) = apply { queryParams.removeAll(keys) }
fun timeout(): Timeout = timeout
@@ -554,4 +566,19 @@ private constructor(
)
}
}
+
+ /**
+ * Closes these client options, relinquishing any underlying resources.
+ *
+ * This is purposefully not inherited from [AutoCloseable] because the client options are
+ * long-lived and usually should not be synchronously closed via try-with-resources.
+ *
+ * It's also usually not necessary to call this method at all. the default client automatically
+ * releases threads and connections if they remain idle, but if you are writing an application
+ * that needs to aggressively release unused resources, then you may call this method.
+ */
+ fun close() {
+ httpClient.close()
+ (streamHandlerExecutor as? ExecutorService)?.shutdown()
+ }
}
diff --git a/openai-java-core/src/main/kotlin/com/openai/core/PhantomReachableExecutorService.kt b/openai-java-core/src/main/kotlin/com/openai/core/PhantomReachableExecutorService.kt
new file mode 100644
index 000000000..250071c78
--- /dev/null
+++ b/openai-java-core/src/main/kotlin/com/openai/core/PhantomReachableExecutorService.kt
@@ -0,0 +1,58 @@
+package com.openai.core
+
+import java.util.concurrent.Callable
+import java.util.concurrent.ExecutorService
+import java.util.concurrent.Future
+import java.util.concurrent.TimeUnit
+
+/**
+ * A delegating wrapper around an [ExecutorService] that shuts it down once it's only phantom
+ * reachable.
+ *
+ * This class ensures the [ExecutorService] is shut down even if the user forgets to do it.
+ */
+internal class PhantomReachableExecutorService(private val executorService: ExecutorService) :
+ ExecutorService {
+ init {
+ closeWhenPhantomReachable(this) { executorService.shutdown() }
+ }
+
+ override fun execute(command: Runnable) = executorService.execute(command)
+
+ override fun shutdown() = executorService.shutdown()
+
+ override fun shutdownNow(): MutableList = executorService.shutdownNow()
+
+ override fun isShutdown(): Boolean = executorService.isShutdown
+
+ override fun isTerminated(): Boolean = executorService.isTerminated
+
+ override fun awaitTermination(timeout: Long, unit: TimeUnit): Boolean =
+ executorService.awaitTermination(timeout, unit)
+
+ override fun submit(task: Callable): Future = executorService.submit(task)
+
+ override fun submit(task: Runnable, result: T): Future =
+ executorService.submit(task, result)
+
+ override fun submit(task: Runnable): Future<*> = executorService.submit(task)
+
+ override fun invokeAll(
+ tasks: MutableCollection>
+ ): MutableList> = executorService.invokeAll(tasks)
+
+ override fun invokeAll(
+ tasks: MutableCollection>,
+ timeout: Long,
+ unit: TimeUnit,
+ ): MutableList> = executorService.invokeAll(tasks, timeout, unit)
+
+ override fun invokeAny(tasks: MutableCollection>): T =
+ executorService.invokeAny(tasks)
+
+ override fun invokeAny(
+ tasks: MutableCollection>,
+ timeout: Long,
+ unit: TimeUnit,
+ ): T = executorService.invokeAny(tasks, timeout, unit)
+}
diff --git a/openai-java-core/src/main/kotlin/com/openai/core/http/HttpRequest.kt b/openai-java-core/src/main/kotlin/com/openai/core/http/HttpRequest.kt
index 3e5a659ab..de2b4115d 100644
--- a/openai-java-core/src/main/kotlin/com/openai/core/http/HttpRequest.kt
+++ b/openai-java-core/src/main/kotlin/com/openai/core/http/HttpRequest.kt
@@ -57,83 +57,83 @@ private constructor(
fun headers(headers: Headers) = apply {
this.headers.clear()
- putAllHeaders(headers)
+ putAllheaders(headers)
}
fun headers(headers: Map>) = apply {
this.headers.clear()
- putAllHeaders(headers)
+ putAllheaders(headers)
}
fun putHeader(name: String, value: String) = apply { headers.put(name, value) }
- fun putHeaders(name: String, values: Iterable) = apply { headers.put(name, values) }
+ fun putheaders(name: String, values: Iterable) = apply { headers.put(name, values) }
- fun putAllHeaders(headers: Headers) = apply { this.headers.putAll(headers) }
+ fun putAllheaders(headers: Headers) = apply { this.headers.putAll(headers) }
- fun putAllHeaders(headers: Map>) = apply {
+ fun putAllheaders(headers: Map>) = apply {
this.headers.putAll(headers)
}
- fun replaceHeaders(name: String, value: String) = apply { headers.replace(name, value) }
+ fun replaceheaders(name: String, value: String) = apply { headers.replace(name, value) }
- fun replaceHeaders(name: String, values: Iterable) = apply {
+ fun replaceheaders(name: String, values: Iterable) = apply {
headers.replace(name, values)
}
- fun replaceAllHeaders(headers: Headers) = apply { this.headers.replaceAll(headers) }
+ fun replaceAllheaders(headers: Headers) = apply { this.headers.replaceAll(headers) }
- fun replaceAllHeaders(headers: Map>) = apply {
+ fun replaceAllheaders(headers: Map>) = apply {
this.headers.replaceAll(headers)
}
- fun removeHeaders(name: String) = apply { headers.remove(name) }
+ fun removeheaders(name: String) = apply { headers.remove(name) }
- fun removeAllHeaders(names: Set) = apply { headers.removeAll(names) }
+ fun removeAllheaders(names: Set) = apply { headers.removeAll(names) }
fun queryParams(queryParams: QueryParams) = apply {
this.queryParams.clear()
- putAllQueryParams(queryParams)
+ putAllquery_params(queryParams)
}
fun queryParams(queryParams: Map>) = apply {
this.queryParams.clear()
- putAllQueryParams(queryParams)
+ putAllquery_params(queryParams)
}
fun putQueryParam(key: String, value: String) = apply { queryParams.put(key, value) }
- fun putQueryParams(key: String, values: Iterable) = apply {
+ fun putquery_params(key: String, values: Iterable) = apply {
queryParams.put(key, values)
}
- fun putAllQueryParams(queryParams: QueryParams) = apply {
+ fun putAllquery_params(queryParams: QueryParams) = apply {
this.queryParams.putAll(queryParams)
}
- fun putAllQueryParams(queryParams: Map>) = apply {
+ fun putAllquery_params(queryParams: Map>) = apply {
this.queryParams.putAll(queryParams)
}
- fun replaceQueryParams(key: String, value: String) = apply {
+ fun replacequery_params(key: String, value: String) = apply {
queryParams.replace(key, value)
}
- fun replaceQueryParams(key: String, values: Iterable) = apply {
+ fun replacequery_params(key: String, values: Iterable) = apply {
queryParams.replace(key, values)
}
- fun replaceAllQueryParams(queryParams: QueryParams) = apply {
+ fun replaceAllquery_params(queryParams: QueryParams) = apply {
this.queryParams.replaceAll(queryParams)
}
- fun replaceAllQueryParams(queryParams: Map>) = apply {
+ fun replaceAllquery_params(queryParams: Map>) = apply {
this.queryParams.replaceAll(queryParams)
}
- fun removeQueryParams(key: String) = apply { queryParams.remove(key) }
+ fun removequery_params(key: String) = apply { queryParams.remove(key) }
- fun removeAllQueryParams(keys: Set) = apply { queryParams.removeAll(keys) }
+ fun removeAllquery_params(keys: Set) = apply { queryParams.removeAll(keys) }
fun body(body: HttpRequestBody) = apply { this.body = body }
diff --git a/openai-java-core/src/main/kotlin/com/openai/models/ComparisonFilter.kt b/openai-java-core/src/main/kotlin/com/openai/models/ComparisonFilter.kt
index 1c11edd53..52033f374 100644
--- a/openai-java-core/src/main/kotlin/com/openai/models/ComparisonFilter.kt
+++ b/openai-java-core/src/main/kotlin/com/openai/models/ComparisonFilter.kt
@@ -197,20 +197,20 @@ private constructor(
fun additionalProperties(additionalProperties: Map) = apply {
this.additionalProperties.clear()
- putAllAdditionalProperties(additionalProperties)
+ putAlladditional_properties(additionalProperties)
}
fun putAdditionalProperty(key: String, value: JsonValue) = apply {
additionalProperties.put(key, value)
}
- fun putAllAdditionalProperties(additionalProperties: Map) = apply {
+ fun putAlladditional_properties(additionalProperties: Map) = apply {
this.additionalProperties.putAll(additionalProperties)
}
fun removeAdditionalProperty(key: String) = apply { additionalProperties.remove(key) }
- fun removeAllAdditionalProperties(keys: Set) = apply {
+ fun removeAlladditional_properties(keys: Set) = apply {
keys.forEach(::removeAdditionalProperty)
}
diff --git a/openai-java-core/src/main/kotlin/com/openai/models/CompoundFilter.kt b/openai-java-core/src/main/kotlin/com/openai/models/CompoundFilter.kt
index 6f14aa5dc..e998ac20a 100644
--- a/openai-java-core/src/main/kotlin/com/openai/models/CompoundFilter.kt
+++ b/openai-java-core/src/main/kotlin/com/openai/models/CompoundFilter.kt
@@ -162,20 +162,20 @@ private constructor(
fun additionalProperties(additionalProperties: Map) = apply {
this.additionalProperties.clear()
- putAllAdditionalProperties(additionalProperties)
+ putAlladditional_properties(additionalProperties)
}
fun putAdditionalProperty(key: String, value: JsonValue) = apply {
additionalProperties.put(key, value)
}
- fun putAllAdditionalProperties(additionalProperties: Map) = apply {
+ fun putAlladditional_properties(additionalProperties: Map) = apply {
this.additionalProperties.putAll(additionalProperties)
}
fun removeAdditionalProperty(key: String) = apply { additionalProperties.remove(key) }
- fun removeAllAdditionalProperties(keys: Set) = apply {
+ fun removeAlladditional_properties(keys: Set) = apply {
keys.forEach(::removeAdditionalProperty)
}
diff --git a/openai-java-core/src/main/kotlin/com/openai/models/CustomToolInputFormat.kt b/openai-java-core/src/main/kotlin/com/openai/models/CustomToolInputFormat.kt
index 1d50626d3..ceca7e57f 100644
--- a/openai-java-core/src/main/kotlin/com/openai/models/CustomToolInputFormat.kt
+++ b/openai-java-core/src/main/kotlin/com/openai/models/CustomToolInputFormat.kt
@@ -355,20 +355,20 @@ private constructor(
fun additionalProperties(additionalProperties: Map) = apply {
this.additionalProperties.clear()
- putAllAdditionalProperties(additionalProperties)
+ putAlladditional_properties(additionalProperties)
}
fun putAdditionalProperty(key: String, value: JsonValue) = apply {
additionalProperties.put(key, value)
}
- fun putAllAdditionalProperties(additionalProperties: Map) = apply {
+ fun putAlladditional_properties(additionalProperties: Map) = apply {
this.additionalProperties.putAll(additionalProperties)
}
fun removeAdditionalProperty(key: String) = apply { additionalProperties.remove(key) }
- fun removeAllAdditionalProperties(keys: Set) = apply {
+ fun removeAlladditional_properties(keys: Set) = apply {
keys.forEach(::removeAdditionalProperty)
}
diff --git a/openai-java-core/src/main/kotlin/com/openai/models/ErrorObject.kt b/openai-java-core/src/main/kotlin/com/openai/models/ErrorObject.kt
index 191eca4fc..55ab79fde 100644
--- a/openai-java-core/src/main/kotlin/com/openai/models/ErrorObject.kt
+++ b/openai-java-core/src/main/kotlin/com/openai/models/ErrorObject.kt
@@ -180,20 +180,20 @@ private constructor(
fun additionalProperties(additionalProperties: Map) = apply {
this.additionalProperties.clear()
- putAllAdditionalProperties(additionalProperties)
+ putAlladditional_properties(additionalProperties)
}
fun putAdditionalProperty(key: String, value: JsonValue) = apply {
additionalProperties.put(key, value)
}
- fun putAllAdditionalProperties(additionalProperties: Map) = apply {
+ fun putAlladditional_properties(additionalProperties: Map) = apply {
this.additionalProperties.putAll(additionalProperties)
}
fun removeAdditionalProperty(key: String) = apply { additionalProperties.remove(key) }
- fun removeAllAdditionalProperties(keys: Set) = apply {
+ fun removeAlladditional_properties(keys: Set) = apply {
keys.forEach(::removeAdditionalProperty)
}
diff --git a/openai-java-core/src/main/kotlin/com/openai/models/FunctionDefinition.kt b/openai-java-core/src/main/kotlin/com/openai/models/FunctionDefinition.kt
index 45ec0f8a7..4f78252c1 100644
--- a/openai-java-core/src/main/kotlin/com/openai/models/FunctionDefinition.kt
+++ b/openai-java-core/src/main/kotlin/com/openai/models/FunctionDefinition.kt
@@ -232,20 +232,20 @@ private constructor(
fun additionalProperties(additionalProperties: Map) = apply {
this.additionalProperties.clear()
- putAllAdditionalProperties(additionalProperties)
+ putAlladditional_properties(additionalProperties)
}
fun putAdditionalProperty(key: String, value: JsonValue) = apply {
additionalProperties.put(key, value)
}
- fun putAllAdditionalProperties(additionalProperties: Map) = apply {
+ fun putAlladditional_properties(additionalProperties: Map) = apply {
this.additionalProperties.putAll(additionalProperties)
}
fun removeAdditionalProperty(key: String) = apply { additionalProperties.remove(key) }
- fun removeAllAdditionalProperties(keys: Set) = apply {
+ fun removeAlladditional_properties(keys: Set) = apply {
keys.forEach(::removeAdditionalProperty)
}
diff --git a/openai-java-core/src/main/kotlin/com/openai/models/FunctionParameters.kt b/openai-java-core/src/main/kotlin/com/openai/models/FunctionParameters.kt
index cac22f8ff..157c7dcdd 100644
--- a/openai-java-core/src/main/kotlin/com/openai/models/FunctionParameters.kt
+++ b/openai-java-core/src/main/kotlin/com/openai/models/FunctionParameters.kt
@@ -49,20 +49,20 @@ private constructor(
fun additionalProperties(additionalProperties: Map) = apply {
this.additionalProperties.clear()
- putAllAdditionalProperties(additionalProperties)
+ putAlladditional_properties(additionalProperties)
}
fun putAdditionalProperty(key: String, value: JsonValue) = apply {
additionalProperties.put(key, value)
}
- fun putAllAdditionalProperties(additionalProperties: Map) = apply {
+ fun putAlladditional_properties(additionalProperties: Map) = apply {
this.additionalProperties.putAll(additionalProperties)
}
fun removeAdditionalProperty(key: String) = apply { additionalProperties.remove(key) }
- fun removeAllAdditionalProperties(keys: Set) = apply {
+ fun removeAlladditional_properties(keys: Set) = apply {
keys.forEach(::removeAdditionalProperty)
}
diff --git a/openai-java-core/src/main/kotlin/com/openai/models/Reasoning.kt b/openai-java-core/src/main/kotlin/com/openai/models/Reasoning.kt
index 991331ce1..676a364d0 100644
--- a/openai-java-core/src/main/kotlin/com/openai/models/Reasoning.kt
+++ b/openai-java-core/src/main/kotlin/com/openai/models/Reasoning.kt
@@ -198,20 +198,20 @@ private constructor(
fun additionalProperties(additionalProperties: Map) = apply {
this.additionalProperties.clear()
- putAllAdditionalProperties(additionalProperties)
+ putAlladditional_properties(additionalProperties)
}
fun putAdditionalProperty(key: String, value: JsonValue) = apply {
additionalProperties.put(key, value)
}
- fun putAllAdditionalProperties(additionalProperties: Map) = apply {
+ fun putAlladditional_properties(additionalProperties: Map) = apply {
this.additionalProperties.putAll(additionalProperties)
}
fun removeAdditionalProperty(key: String) = apply { additionalProperties.remove(key) }
- fun removeAllAdditionalProperties(keys: Set) = apply {
+ fun removeAlladditional_properties(keys: Set) = apply {
keys.forEach(::removeAdditionalProperty)
}
diff --git a/openai-java-core/src/main/kotlin/com/openai/models/ResponseFormatJsonObject.kt b/openai-java-core/src/main/kotlin/com/openai/models/ResponseFormatJsonObject.kt
index 5ac4fd0c7..8293495b8 100644
--- a/openai-java-core/src/main/kotlin/com/openai/models/ResponseFormatJsonObject.kt
+++ b/openai-java-core/src/main/kotlin/com/openai/models/ResponseFormatJsonObject.kt
@@ -88,20 +88,20 @@ private constructor(
fun additionalProperties(additionalProperties: Map) = apply {
this.additionalProperties.clear()
- putAllAdditionalProperties(additionalProperties)
+ putAlladditional_properties(additionalProperties)
}
fun putAdditionalProperty(key: String, value: JsonValue) = apply {
additionalProperties.put(key, value)
}
- fun putAllAdditionalProperties(additionalProperties: Map) = apply {
+ fun putAlladditional_properties(additionalProperties: Map) = apply {
this.additionalProperties.putAll(additionalProperties)
}
fun removeAdditionalProperty(key: String) = apply { additionalProperties.remove(key) }
- fun removeAllAdditionalProperties(keys: Set) = apply {
+ fun removeAlladditional_properties(keys: Set) = apply {
keys.forEach(::removeAdditionalProperty)
}
diff --git a/openai-java-core/src/main/kotlin/com/openai/models/ResponseFormatJsonSchema.kt b/openai-java-core/src/main/kotlin/com/openai/models/ResponseFormatJsonSchema.kt
index 26529e540..7f82bb600 100644
--- a/openai-java-core/src/main/kotlin/com/openai/models/ResponseFormatJsonSchema.kt
+++ b/openai-java-core/src/main/kotlin/com/openai/models/ResponseFormatJsonSchema.kt
@@ -134,20 +134,20 @@ private constructor(
fun additionalProperties(additionalProperties: Map) = apply {
this.additionalProperties.clear()
- putAllAdditionalProperties(additionalProperties)
+ putAlladditional_properties(additionalProperties)
}
fun putAdditionalProperty(key: String, value: JsonValue) = apply {
additionalProperties.put(key, value)
}
- fun putAllAdditionalProperties(additionalProperties: Map) = apply {
+ fun putAlladditional_properties(additionalProperties: Map) = apply {
this.additionalProperties.putAll(additionalProperties)
}
fun removeAdditionalProperty(key: String) = apply { additionalProperties.remove(key) }
- fun removeAllAdditionalProperties(keys: Set) = apply {
+ fun removeAlladditional_properties(keys: Set) = apply {
keys.forEach(::removeAdditionalProperty)
}
@@ -412,20 +412,20 @@ private constructor(
fun additionalProperties(additionalProperties: Map) = apply {
this.additionalProperties.clear()
- putAllAdditionalProperties(additionalProperties)
+ putAlladditional_properties(additionalProperties)
}
fun putAdditionalProperty(key: String, value: JsonValue) = apply {
additionalProperties.put(key, value)
}
- fun putAllAdditionalProperties(additionalProperties: Map) = apply {
+ fun putAlladditional_properties(additionalProperties: Map) = apply {
this.additionalProperties.putAll(additionalProperties)
}
fun removeAdditionalProperty(key: String) = apply { additionalProperties.remove(key) }
- fun removeAllAdditionalProperties(keys: Set) = apply {
+ fun removeAlladditional_properties(keys: Set) = apply {
keys.forEach(::removeAdditionalProperty)
}
@@ -521,14 +521,14 @@ private constructor(
fun additionalProperties(additionalProperties: Map) = apply {
this.additionalProperties.clear()
- putAllAdditionalProperties(additionalProperties)
+ putAlladditional_properties(additionalProperties)
}
fun putAdditionalProperty(key: String, value: JsonValue) = apply {
additionalProperties.put(key, value)
}
- fun putAllAdditionalProperties(additionalProperties: Map) =
+ fun putAlladditional_properties(additionalProperties: Map) =
apply {
this.additionalProperties.putAll(additionalProperties)
}
@@ -537,7 +537,7 @@ private constructor(
additionalProperties.remove(key)
}
- fun removeAllAdditionalProperties(keys: Set) = apply {
+ fun removeAlladditional_properties(keys: Set) = apply {
keys.forEach(::removeAdditionalProperty)
}
diff --git a/openai-java-core/src/main/kotlin/com/openai/models/ResponseFormatText.kt b/openai-java-core/src/main/kotlin/com/openai/models/ResponseFormatText.kt
index 2d8a85ca5..1bb7adbc5 100644
--- a/openai-java-core/src/main/kotlin/com/openai/models/ResponseFormatText.kt
+++ b/openai-java-core/src/main/kotlin/com/openai/models/ResponseFormatText.kt
@@ -84,20 +84,20 @@ private constructor(
fun additionalProperties(additionalProperties: Map) = apply {
this.additionalProperties.clear()
- putAllAdditionalProperties(additionalProperties)
+ putAlladditional_properties(additionalProperties)
}
fun putAdditionalProperty(key: String, value: JsonValue) = apply {
additionalProperties.put(key, value)
}
- fun putAllAdditionalProperties(additionalProperties: Map) = apply {
+ fun putAlladditional_properties(additionalProperties: Map) = apply {
this.additionalProperties.putAll(additionalProperties)
}
fun removeAdditionalProperty(key: String) = apply { additionalProperties.remove(key) }
- fun removeAllAdditionalProperties(keys: Set) = apply {
+ fun removeAlladditional_properties(keys: Set) = apply {
keys.forEach(::removeAdditionalProperty)
}
diff --git a/openai-java-core/src/main/kotlin/com/openai/models/ResponseFormatTextGrammar.kt b/openai-java-core/src/main/kotlin/com/openai/models/ResponseFormatTextGrammar.kt
index 96e0f67b9..693c52dd6 100644
--- a/openai-java-core/src/main/kotlin/com/openai/models/ResponseFormatTextGrammar.kt
+++ b/openai-java-core/src/main/kotlin/com/openai/models/ResponseFormatTextGrammar.kt
@@ -126,20 +126,20 @@ private constructor(
fun additionalProperties(additionalProperties: Map) = apply {
this.additionalProperties.clear()
- putAllAdditionalProperties(additionalProperties)
+ putAlladditional_properties(additionalProperties)
}
fun putAdditionalProperty(key: String, value: JsonValue) = apply {
additionalProperties.put(key, value)
}
- fun putAllAdditionalProperties(additionalProperties: Map) = apply {
+ fun putAlladditional_properties(additionalProperties: Map) = apply {
this.additionalProperties.putAll(additionalProperties)
}
fun removeAdditionalProperty(key: String) = apply { additionalProperties.remove(key) }
- fun removeAllAdditionalProperties(keys: Set) = apply {
+ fun removeAlladditional_properties(keys: Set) = apply {
keys.forEach(::removeAdditionalProperty)
}
diff --git a/openai-java-core/src/main/kotlin/com/openai/models/ResponseFormatTextPython.kt b/openai-java-core/src/main/kotlin/com/openai/models/ResponseFormatTextPython.kt
index f2062e8e8..1e38cc041 100644
--- a/openai-java-core/src/main/kotlin/com/openai/models/ResponseFormatTextPython.kt
+++ b/openai-java-core/src/main/kotlin/com/openai/models/ResponseFormatTextPython.kt
@@ -88,20 +88,20 @@ private constructor(
fun additionalProperties(additionalProperties: Map) = apply {
this.additionalProperties.clear()
- putAllAdditionalProperties(additionalProperties)
+ putAlladditional_properties(additionalProperties)
}
fun putAdditionalProperty(key: String, value: JsonValue) = apply {
additionalProperties.put(key, value)
}
- fun putAllAdditionalProperties(additionalProperties: Map) = apply {
+ fun putAlladditional_properties(additionalProperties: Map) = apply {
this.additionalProperties.putAll(additionalProperties)
}
fun removeAdditionalProperty(key: String) = apply { additionalProperties.remove(key) }
- fun removeAllAdditionalProperties(keys: Set) = apply {
+ fun removeAlladditional_properties(keys: Set) = apply {
keys.forEach(::removeAdditionalProperty)
}
diff --git a/openai-java-core/src/main/kotlin/com/openai/models/audio/speech/SpeechCreateParams.kt b/openai-java-core/src/main/kotlin/com/openai/models/audio/speech/SpeechCreateParams.kt
index d228da4c4..72668df81 100644
--- a/openai-java-core/src/main/kotlin/com/openai/models/audio/speech/SpeechCreateParams.kt
+++ b/openai-java-core/src/main/kotlin/com/openai/models/audio/speech/SpeechCreateParams.kt
@@ -326,112 +326,111 @@ private constructor(
body.putAdditionalProperty(key, value)
}
- fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) =
+ fun putAlladditional_body_properties(additionalBodyProperties: Map) =
apply {
- body.putAllAdditionalProperties(additionalBodyProperties)
+ body.putAlladditional_body_properties(additionalBodyProperties)
}
fun removeAdditionalBodyProperty(key: String) = apply { body.removeAdditionalProperty(key) }
- fun removeAllAdditionalBodyProperties(keys: Set) = apply {
- body.removeAllAdditionalProperties(keys)
+ fun removeAlladditional_body_properties(keys: Set) = apply {
+ body.removeAlladditional_body_properties(keys)
}
fun additionalHeaders(additionalHeaders: Headers) = apply {
this.additionalHeaders.clear()
- putAllAdditionalHeaders(additionalHeaders)
+ putAlladditional_headers(additionalHeaders)
}
fun additionalHeaders(additionalHeaders: Map>) = apply {
this.additionalHeaders.clear()
- putAllAdditionalHeaders(additionalHeaders)
+ putAlladditional_headers(additionalHeaders)
}
fun putAdditionalHeader(name: String, value: String) = apply {
additionalHeaders.put(name, value)
}
- fun putAdditionalHeaders(name: String, values: Iterable) = apply {
+ fun putadditional_headers(name: String, values: Iterable) = apply {
additionalHeaders.put(name, values)
}
- fun putAllAdditionalHeaders(additionalHeaders: Headers) = apply {
+ fun putAlladditional_headers(additionalHeaders: Headers) = apply {
this.additionalHeaders.putAll(additionalHeaders)
}
- fun putAllAdditionalHeaders(additionalHeaders: Map>) = apply {
+ fun putAlladditional_headers(additionalHeaders: Map>) = apply {
this.additionalHeaders.putAll(additionalHeaders)
}
- fun replaceAdditionalHeaders(name: String, value: String) = apply {
+ fun replaceadditional_headers(name: String, value: String) = apply {
additionalHeaders.replace(name, value)
}
- fun replaceAdditionalHeaders(name: String, values: Iterable) = apply {
+ fun replaceadditional_headers(name: String, values: Iterable) = apply {
additionalHeaders.replace(name, values)
}
- fun replaceAllAdditionalHeaders(additionalHeaders: Headers) = apply {
+ fun replaceAlladditional_headers(additionalHeaders: Headers) = apply {
this.additionalHeaders.replaceAll(additionalHeaders)
}
- fun replaceAllAdditionalHeaders(additionalHeaders: Map>) = apply {
+ fun replaceAlladditional_headers(additionalHeaders: Map>) = apply {
this.additionalHeaders.replaceAll(additionalHeaders)
}
- fun removeAdditionalHeaders(name: String) = apply { additionalHeaders.remove(name) }
+ fun removeadditional_headers(name: String) = apply { additionalHeaders.remove(name) }
- fun removeAllAdditionalHeaders(names: Set) = apply {
+ fun removeAlladditional_headers(names: Set) = apply {
additionalHeaders.removeAll(names)
}
fun additionalQueryParams(additionalQueryParams: QueryParams) = apply {
this.additionalQueryParams.clear()
- putAllAdditionalQueryParams(additionalQueryParams)
+ putAlladditional_query_params(additionalQueryParams)
}
fun additionalQueryParams(additionalQueryParams: Map>) = apply {
this.additionalQueryParams.clear()
- putAllAdditionalQueryParams(additionalQueryParams)
+ putAlladditional_query_params(additionalQueryParams)
}
fun putAdditionalQueryParam(key: String, value: String) = apply {
additionalQueryParams.put(key, value)
}
- fun putAdditionalQueryParams(key: String, values: Iterable) = apply {
+ fun putadditional_query_params(key: String, values: Iterable) = apply {
additionalQueryParams.put(key, values)
}
- fun putAllAdditionalQueryParams(additionalQueryParams: QueryParams) = apply {
+ fun putAlladditional_query_params(additionalQueryParams: QueryParams) = apply {
this.additionalQueryParams.putAll(additionalQueryParams)
}
- fun putAllAdditionalQueryParams(additionalQueryParams: Map>) =
+ fun putAlladditional_query_params(additionalQueryParams: Map>) =
apply {
this.additionalQueryParams.putAll(additionalQueryParams)
}
- fun replaceAdditionalQueryParams(key: String, value: String) = apply {
+ fun replaceadditional_query_params(key: String, value: String) = apply {
additionalQueryParams.replace(key, value)
}
- fun replaceAdditionalQueryParams(key: String, values: Iterable) = apply {
+ fun replaceadditional_query_params(key: String, values: Iterable) = apply {
additionalQueryParams.replace(key, values)
}
- fun replaceAllAdditionalQueryParams(additionalQueryParams: QueryParams) = apply {
+ fun replaceAlladditional_query_params(additionalQueryParams: QueryParams) = apply {
this.additionalQueryParams.replaceAll(additionalQueryParams)
}
- fun replaceAllAdditionalQueryParams(additionalQueryParams: Map>) =
- apply {
- this.additionalQueryParams.replaceAll(additionalQueryParams)
- }
+ fun replaceAlladditional_query_params(
+ additionalQueryParams: Map>
+ ) = apply { this.additionalQueryParams.replaceAll(additionalQueryParams) }
- fun removeAdditionalQueryParams(key: String) = apply { additionalQueryParams.remove(key) }
+ fun removeadditional_query_params(key: String) = apply { additionalQueryParams.remove(key) }
- fun removeAllAdditionalQueryParams(keys: Set) = apply {
+ fun removeAlladditional_query_params(keys: Set) = apply {
additionalQueryParams.removeAll(keys)
}
@@ -806,20 +805,20 @@ private constructor(
fun additionalProperties(additionalProperties: Map) = apply {
this.additionalProperties.clear()
- putAllAdditionalProperties(additionalProperties)
+ putAlladditional_properties(additionalProperties)
}
fun putAdditionalProperty(key: String, value: JsonValue) = apply {
additionalProperties.put(key, value)
}
- fun putAllAdditionalProperties(additionalProperties: Map) = apply {
+ fun putAlladditional_properties(additionalProperties: Map) = apply {
this.additionalProperties.putAll(additionalProperties)
}
fun removeAdditionalProperty(key: String) = apply { additionalProperties.remove(key) }
- fun removeAllAdditionalProperties(keys: Set) = apply {
+ fun removeAlladditional_properties(keys: Set) = apply {
keys.forEach(::removeAdditionalProperty)
}
diff --git a/openai-java-core/src/main/kotlin/com/openai/models/audio/transcriptions/Transcription.kt b/openai-java-core/src/main/kotlin/com/openai/models/audio/transcriptions/Transcription.kt
index f528e3723..2c8a1bd6a 100644
--- a/openai-java-core/src/main/kotlin/com/openai/models/audio/transcriptions/Transcription.kt
+++ b/openai-java-core/src/main/kotlin/com/openai/models/audio/transcriptions/Transcription.kt
@@ -206,20 +206,20 @@ private constructor(
fun additionalProperties(additionalProperties: Map) = apply {
this.additionalProperties.clear()
- putAllAdditionalProperties(additionalProperties)
+ putAlladditional_properties(additionalProperties)
}
fun putAdditionalProperty(key: String, value: JsonValue) = apply {
additionalProperties.put(key, value)
}
- fun putAllAdditionalProperties(additionalProperties: Map) = apply {
+ fun putAlladditional_properties(additionalProperties: Map) = apply {
this.additionalProperties.putAll(additionalProperties)
}
fun removeAdditionalProperty(key: String) = apply { additionalProperties.remove(key) }
- fun removeAllAdditionalProperties(keys: Set) = apply {
+ fun removeAlladditional_properties(keys: Set) = apply {
keys.forEach(::removeAdditionalProperty)
}
@@ -424,20 +424,20 @@ private constructor(
fun additionalProperties(additionalProperties: Map) = apply {
this.additionalProperties.clear()
- putAllAdditionalProperties(additionalProperties)
+ putAlladditional_properties(additionalProperties)
}
fun putAdditionalProperty(key: String, value: JsonValue) = apply {
additionalProperties.put(key, value)
}
- fun putAllAdditionalProperties(additionalProperties: Map) = apply {
+ fun putAlladditional_properties(additionalProperties: Map) = apply {
this.additionalProperties.putAll(additionalProperties)
}
fun removeAdditionalProperty(key: String) = apply { additionalProperties.remove(key) }
- fun removeAllAdditionalProperties(keys: Set) = apply {
+ fun removeAlladditional_properties(keys: Set) = apply {
keys.forEach(::removeAdditionalProperty)
}
@@ -926,14 +926,14 @@ private constructor(
fun additionalProperties(additionalProperties: Map) = apply {
this.additionalProperties.clear()
- putAllAdditionalProperties(additionalProperties)
+ putAlladditional_properties(additionalProperties)
}
fun putAdditionalProperty(key: String, value: JsonValue) = apply {
additionalProperties.put(key, value)
}
- fun putAllAdditionalProperties(additionalProperties: Map) =
+ fun putAlladditional_properties(additionalProperties: Map) =
apply {
this.additionalProperties.putAll(additionalProperties)
}
@@ -942,7 +942,7 @@ private constructor(
additionalProperties.remove(key)
}
- fun removeAllAdditionalProperties(keys: Set) = apply {
+ fun removeAlladditional_properties(keys: Set) = apply {
keys.forEach(::removeAdditionalProperty)
}
@@ -1131,14 +1131,14 @@ private constructor(
fun additionalProperties(additionalProperties: Map) = apply {
this.additionalProperties.clear()
- putAllAdditionalProperties(additionalProperties)
+ putAlladditional_properties(additionalProperties)
}
fun putAdditionalProperty(key: String, value: JsonValue) = apply {
additionalProperties.put(key, value)
}
- fun putAllAdditionalProperties(additionalProperties: Map) =
+ fun putAlladditional_properties(additionalProperties: Map) =
apply {
this.additionalProperties.putAll(additionalProperties)
}
@@ -1147,7 +1147,7 @@ private constructor(
additionalProperties.remove(key)
}
- fun removeAllAdditionalProperties(keys: Set) = apply {
+ fun removeAlladditional_properties(keys: Set) = apply {
keys.forEach(::removeAdditionalProperty)
}
@@ -1359,14 +1359,14 @@ private constructor(
fun additionalProperties(additionalProperties: Map) = apply {
this.additionalProperties.clear()
- putAllAdditionalProperties(additionalProperties)
+ putAlladditional_properties(additionalProperties)
}
fun putAdditionalProperty(key: String, value: JsonValue) = apply {
additionalProperties.put(key, value)
}
- fun putAllAdditionalProperties(additionalProperties: Map) =
+ fun putAlladditional_properties(additionalProperties: Map) =
apply {
this.additionalProperties.putAll(additionalProperties)
}
@@ -1375,7 +1375,7 @@ private constructor(
additionalProperties.remove(key)
}
- fun removeAllAdditionalProperties(keys: Set) = apply {
+ fun removeAlladditional_properties(keys: Set) = apply {
keys.forEach(::removeAdditionalProperty)
}
diff --git a/openai-java-core/src/main/kotlin/com/openai/models/audio/transcriptions/TranscriptionCreateParams.kt b/openai-java-core/src/main/kotlin/com/openai/models/audio/transcriptions/TranscriptionCreateParams.kt
index 581c6cff0..42357e15f 100644
--- a/openai-java-core/src/main/kotlin/com/openai/models/audio/transcriptions/TranscriptionCreateParams.kt
+++ b/openai-java-core/src/main/kotlin/com/openai/models/audio/transcriptions/TranscriptionCreateParams.kt
@@ -478,112 +478,111 @@ private constructor(
body.putAdditionalProperty(key, value)
}
- fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) =
+ fun putAlladditional_body_properties(additionalBodyProperties: Map) =
apply {
- body.putAllAdditionalProperties(additionalBodyProperties)
+ body.putAlladditional_body_properties(additionalBodyProperties)
}
fun removeAdditionalBodyProperty(key: String) = apply { body.removeAdditionalProperty(key) }
- fun removeAllAdditionalBodyProperties(keys: Set) = apply {
- body.removeAllAdditionalProperties(keys)
+ fun removeAlladditional_body_properties(keys: Set) = apply {
+ body.removeAlladditional_body_properties(keys)
}
fun additionalHeaders(additionalHeaders: Headers) = apply {
this.additionalHeaders.clear()
- putAllAdditionalHeaders(additionalHeaders)
+ putAlladditional_headers(additionalHeaders)
}
fun additionalHeaders(additionalHeaders: Map>) = apply {
this.additionalHeaders.clear()
- putAllAdditionalHeaders(additionalHeaders)
+ putAlladditional_headers(additionalHeaders)
}
fun putAdditionalHeader(name: String, value: String) = apply {
additionalHeaders.put(name, value)
}
- fun putAdditionalHeaders(name: String, values: Iterable) = apply {
+ fun putadditional_headers(name: String, values: Iterable) = apply {
additionalHeaders.put(name, values)
}
- fun putAllAdditionalHeaders(additionalHeaders: Headers) = apply {
+ fun putAlladditional_headers(additionalHeaders: Headers) = apply {
this.additionalHeaders.putAll(additionalHeaders)
}
- fun putAllAdditionalHeaders(additionalHeaders: Map>) = apply {
+ fun putAlladditional_headers(additionalHeaders: Map>) = apply {
this.additionalHeaders.putAll(additionalHeaders)
}
- fun replaceAdditionalHeaders(name: String, value: String) = apply {
+ fun replaceadditional_headers(name: String, value: String) = apply {
additionalHeaders.replace(name, value)
}
- fun replaceAdditionalHeaders(name: String, values: Iterable) = apply {
+ fun replaceadditional_headers(name: String, values: Iterable) = apply {
additionalHeaders.replace(name, values)
}
- fun replaceAllAdditionalHeaders(additionalHeaders: Headers) = apply {
+ fun replaceAlladditional_headers(additionalHeaders: Headers) = apply {
this.additionalHeaders.replaceAll(additionalHeaders)
}
- fun replaceAllAdditionalHeaders(additionalHeaders: Map>) = apply {
+ fun replaceAlladditional_headers(additionalHeaders: Map>) = apply {
this.additionalHeaders.replaceAll(additionalHeaders)
}
- fun removeAdditionalHeaders(name: String) = apply { additionalHeaders.remove(name) }
+ fun removeadditional_headers(name: String) = apply { additionalHeaders.remove(name) }
- fun removeAllAdditionalHeaders(names: Set) = apply {
+ fun removeAlladditional_headers(names: Set) = apply {
additionalHeaders.removeAll(names)
}
fun additionalQueryParams(additionalQueryParams: QueryParams) = apply {
this.additionalQueryParams.clear()
- putAllAdditionalQueryParams(additionalQueryParams)
+ putAlladditional_query_params(additionalQueryParams)
}
fun additionalQueryParams(additionalQueryParams: Map>) = apply {
this.additionalQueryParams.clear()
- putAllAdditionalQueryParams(additionalQueryParams)
+ putAlladditional_query_params(additionalQueryParams)
}
fun putAdditionalQueryParam(key: String, value: String) = apply {
additionalQueryParams.put(key, value)
}
- fun putAdditionalQueryParams(key: String, values: Iterable) = apply {
+ fun putadditional_query_params(key: String, values: Iterable) = apply {
additionalQueryParams.put(key, values)
}
- fun putAllAdditionalQueryParams(additionalQueryParams: QueryParams) = apply {
+ fun putAlladditional_query_params(additionalQueryParams: QueryParams) = apply {
this.additionalQueryParams.putAll(additionalQueryParams)
}
- fun putAllAdditionalQueryParams(additionalQueryParams: Map>) =
+ fun putAlladditional_query_params(additionalQueryParams: Map>) =
apply {
this.additionalQueryParams.putAll(additionalQueryParams)
}
- fun replaceAdditionalQueryParams(key: String, value: String) = apply {
+ fun replaceadditional_query_params(key: String, value: String) = apply {
additionalQueryParams.replace(key, value)
}
- fun replaceAdditionalQueryParams(key: String, values: Iterable) = apply {
+ fun replaceadditional_query_params(key: String, values: Iterable) = apply {
additionalQueryParams.replace(key, values)
}
- fun replaceAllAdditionalQueryParams(additionalQueryParams: QueryParams) = apply {
+ fun replaceAlladditional_query_params(additionalQueryParams: QueryParams) = apply {
this.additionalQueryParams.replaceAll(additionalQueryParams)
}
- fun replaceAllAdditionalQueryParams(additionalQueryParams: Map>) =
- apply {
- this.additionalQueryParams.replaceAll(additionalQueryParams)
- }
+ fun replaceAlladditional_query_params(
+ additionalQueryParams: Map>
+ ) = apply { this.additionalQueryParams.replaceAll(additionalQueryParams) }
- fun removeAdditionalQueryParams(key: String) = apply { additionalQueryParams.remove(key) }
+ fun removeadditional_query_params(key: String) = apply { additionalQueryParams.remove(key) }
- fun removeAllAdditionalQueryParams(keys: Set) = apply {
+ fun removeAlladditional_query_params(keys: Set) = apply {
additionalQueryParams.removeAll(keys)
}
@@ -1103,20 +1102,20 @@ private constructor(
fun additionalProperties(additionalProperties: Map) = apply {
this.additionalProperties.clear()
- putAllAdditionalProperties(additionalProperties)
+ putAlladditional_properties(additionalProperties)
}
fun putAdditionalProperty(key: String, value: JsonValue) = apply {
additionalProperties.put(key, value)
}
- fun putAllAdditionalProperties(additionalProperties: Map) = apply {
+ fun putAlladditional_properties(additionalProperties: Map