diff --git a/.castiron.stats.yml b/.castiron.stats.yml index 35afdd754..3d11354fb 100644 --- a/.castiron.stats.yml +++ b/.castiron.stats.yml @@ -1,7 +1,7 @@ schema_version: 1 -generation_id: 1adb5457-fc86-49c9-88a6-4b04cbd46c7d -openapi_spec_hash: 23f359a053279aa06cf55a50875608c5 -openapi_transformed_spec_hash: 7abf13f0be7d5b2a611fe52fbaf21063 +generation_id: 401d7482-7c7f-4c92-a59c-86de09aa73bf +openapi_spec_hash: 9df7f85b20baf5d88e09d7c74b43a6e4 +openapi_transformed_spec_hash: d5b0444430e15ca702a77f0855c44187 config_hash: ba891e1481bb52b190c89120be41b261 -codegen_sha: 0b4754122b0f88542f6d618b912b73559cfd5bdd -codegen_hash: 8f41d523e20b5495b95fc9196e4cca36ca05922a6fdae42a36e139ebfa3d3526 +codegen_sha: 9adae1e563e3d1ca53e867ae165c4013ee30cf35 +codegen_hash: c0c76a263af5584c0d757ba67b0858e448ad628792faac5bd830636ebb5112a4 diff --git a/api_reference/openapi.transformed.yml b/api_reference/openapi.transformed.yml index 0d86a98be..70cc6acc9 100644 --- a/api_reference/openapi.transformed.yml +++ b/api_reference/openapi.transformed.yml @@ -34736,7 +34736,7 @@ paths: type: string minLength: 1 maxLength: 256 - description: An optional client-generated key that makes retries of submitted messages idempotent. + description: An optional client-generated key for message submissions. Retry the same message with the same key and identical input within the 24-hour replay window; a retry replays the original outcome if it is available. After the window expires, a key whose outcome is unavailable may return 409. After a timeout or server error, inspect the session history and items before resubmitting. Use a new key for a new message, or only after confirming the earlier message did not execute. requestBody: content: application/json: @@ -43034,7 +43034,10 @@ components: - /v1/images/generations - /v1/images/edits - /v1/videos - description: The endpoint to be used for all requests in the batch. Currently `/v1/responses`, `/v1/chat/completions`, `/v1/embeddings`, `/v1/completions`, `/v1/moderations`, `/v1/images/generations`, `/v1/images/edits`, and `/v1/videos` are supported. Note that `/v1/embeddings` batches are also restricted to a maximum of 50,000 embedding inputs across all requests in the batch. + x-openai-enum-deprecations: + /v1/videos: + message: The Videos API shut down on September 24, 2026. Batch creation no longer accepts this endpoint. + description: The endpoint to be used for all requests in the batch. Currently `/v1/responses`, `/v1/chat/completions`, `/v1/embeddings`, `/v1/completions`, `/v1/moderations`, `/v1/images/generations`, and `/v1/images/edits` are supported. Note that `/v1/embeddings` batches are also restricted to a maximum of 50,000 embedding inputs across all requests in the batch. completion_window: type: string enum: diff --git a/openai-java-core/src/main/kotlin/com/openai/models/batches/BatchCreateParams.kt b/openai-java-core/src/main/kotlin/com/openai/models/batches/BatchCreateParams.kt index 0ca3569e1..ed285a97f 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/batches/BatchCreateParams.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/batches/BatchCreateParams.kt @@ -42,9 +42,9 @@ private constructor( /** * The endpoint to be used for all requests in the batch. Currently `/v1/responses`, * `/v1/chat/completions`, `/v1/embeddings`, `/v1/completions`, `/v1/moderations`, - * `/v1/images/generations`, `/v1/images/edits`, and `/v1/videos` are supported. Note that - * `/v1/embeddings` batches are also restricted to a maximum of 50,000 embedding inputs across - * all requests in the batch. + * `/v1/images/generations`, and `/v1/images/edits` are supported. Note that `/v1/embeddings` + * batches are also restricted to a maximum of 50,000 embedding inputs across all requests in + * the batch. * * @throws OpenAIInvalidDataException if the JSON field has an unexpected type or is * unexpectedly missing or null (e.g. if the server responded with an unexpected value). @@ -199,7 +199,7 @@ private constructor( /** * The endpoint to be used for all requests in the batch. Currently `/v1/responses`, * `/v1/chat/completions`, `/v1/embeddings`, `/v1/completions`, `/v1/moderations`, - * `/v1/images/generations`, `/v1/images/edits`, and `/v1/videos` are supported. Note that + * `/v1/images/generations`, and `/v1/images/edits` are supported. Note that * `/v1/embeddings` batches are also restricted to a maximum of 50,000 embedding inputs * across all requests in the batch. */ @@ -470,7 +470,7 @@ private constructor( /** * The endpoint to be used for all requests in the batch. Currently `/v1/responses`, * `/v1/chat/completions`, `/v1/embeddings`, `/v1/completions`, `/v1/moderations`, - * `/v1/images/generations`, `/v1/images/edits`, and `/v1/videos` are supported. Note that + * `/v1/images/generations`, and `/v1/images/edits` are supported. Note that * `/v1/embeddings` batches are also restricted to a maximum of 50,000 embedding inputs * across all requests in the batch. * @@ -653,9 +653,9 @@ private constructor( /** * The endpoint to be used for all requests in the batch. Currently `/v1/responses`, * `/v1/chat/completions`, `/v1/embeddings`, `/v1/completions`, `/v1/moderations`, - * `/v1/images/generations`, `/v1/images/edits`, and `/v1/videos` are supported. Note - * that `/v1/embeddings` batches are also restricted to a maximum of 50,000 embedding - * inputs across all requests in the batch. + * `/v1/images/generations`, and `/v1/images/edits` are supported. Note that + * `/v1/embeddings` batches are also restricted to a maximum of 50,000 embedding inputs + * across all requests in the batch. */ fun endpoint(endpoint: Endpoint) = endpoint(JsonField.of(endpoint)) @@ -991,9 +991,9 @@ private constructor( /** * The endpoint to be used for all requests in the batch. Currently `/v1/responses`, * `/v1/chat/completions`, `/v1/embeddings`, `/v1/completions`, `/v1/moderations`, - * `/v1/images/generations`, `/v1/images/edits`, and `/v1/videos` are supported. Note that - * `/v1/embeddings` batches are also restricted to a maximum of 50,000 embedding inputs across - * all requests in the batch. + * `/v1/images/generations`, and `/v1/images/edits` are supported. Note that `/v1/embeddings` + * batches are also restricted to a maximum of 50,000 embedding inputs across all requests in + * the batch. */ class Endpoint @JsonCreator private constructor(private val value: JsonField) : Enum { @@ -1023,7 +1023,11 @@ private constructor( @JvmField val V1_IMAGES_EDITS = of("/v1/images/edits") - @JvmField val V1_VIDEOS = of("/v1/videos") + @Deprecated( + "The Videos API shut down on September 24, 2026. Batch creation no longer accepts this endpoint." + ) + @JvmField + val V1_VIDEOS = of("/v1/videos") @JvmStatic fun of(value: String) = Endpoint(JsonField.of(value)) } @@ -1037,6 +1041,9 @@ private constructor( V1_MODERATIONS, V1_IMAGES_GENERATIONS, V1_IMAGES_EDITS, + @Deprecated( + "The Videos API shut down on September 24, 2026. Batch creation no longer accepts this endpoint." + ) V1_VIDEOS, } @@ -1057,6 +1064,9 @@ private constructor( V1_MODERATIONS, V1_IMAGES_GENERATIONS, V1_IMAGES_EDITS, + @Deprecated( + "The Videos API shut down on September 24, 2026. Batch creation no longer accepts this endpoint." + ) V1_VIDEOS, /** An enum member indicating that [Endpoint] was instantiated with an unknown value. */ _UNKNOWN, diff --git a/scripts/castiron/generated-files.json b/scripts/castiron/generated-files.json index 3d09f53c8..6805b2684 100644 --- a/scripts/castiron/generated-files.json +++ b/scripts/castiron/generated-files.json @@ -1583,7 +1583,7 @@ }, "openai-java-core/src/main/kotlin/com/openai/models/batches/BatchCreateParams.kt": { "mode": "100644", - "sha256": "47480f42dce6fc44a4f7b372de8bb3e52e58ed90244a42ba0ce0d135a68bc52b" + "sha256": "7e2a90c384693d75ec673f08c06507d192185309e13bdaf5fc1efcd4b903163b" }, "openai-java-core/src/main/kotlin/com/openai/models/batches/BatchError.kt": { "mode": "100644",