Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 7 additions & 7 deletions .castiron.stats.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
schema_version: 1
generation_id: 6efdb731-c7f9-436b-af28-c3de6f5e91d3
openapi_spec_hash: 28ec9bd417aeb3f776da6088a496b267
openapi_transformed_spec_hash: 2f7bcd56396c286698443b3c84ad7d07
config_hash: a7b2953a5cf16992f2efba8b0fcd15ea
codegen_sha: a9875e25fdb8f55cfa938273d32c93435d3b3801
codegen_hash: c00199a3281cfe28d53f4ec4ccc6de66a2e662597678739c8d7e908d782eba2e
public_codegen_sha: 55f5bff0f41b568a61c53b27f5451b53f59a62a5
generation_id: 2cb6287b-74fd-4ffe-836e-359c0bf21e19
openapi_spec_hash: 188e635ec266a07f1ef188d7ed905bde
openapi_transformed_spec_hash: e389b9730464603779059a897ec940f9
config_hash: 38c35bf82be025557d8a7dc727060f2f
codegen_sha: e023fa823e554e7f0756b6c8099ffa33363b546f
codegen_hash: 6e92ca97386a94172e8c392ad85e944e5e8aabc7e38218892f34db18a4d3fa02
public_codegen_sha: f1b4c32c2634ddd648fb92f253febc0840dbb5e9
329 changes: 299 additions & 30 deletions api_reference/openapi.transformed.yml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ com.openai.models.chat.completions.StructuredChatCompletionMessage#refusal ()Lja
com.openai.models.chat.completions.StructuredChatCompletionMessage#responseType ()Ljava/lang/Class;
com.openai.models.chat.completions.StructuredChatCompletionMessage#toolCalls ()Ljava/util/Optional;
com.openai.models.chat.completions.StructuredChatCompletionMessage#validate ()Lcom/openai/models/chat/completions/ChatCompletionMessage;
com.openai.models.responses.StructuredResponse#_accessPrograms ()Lcom/openai/core/JsonField;
com.openai.models.responses.StructuredResponse#_additionalProperties ()Ljava/util/Map;
com.openai.models.responses.StructuredResponse#_background ()Lcom/openai/core/JsonField;
com.openai.models.responses.StructuredResponse#_completedAt ()Lcom/openai/core/JsonField;
Expand Down Expand Up @@ -273,6 +274,7 @@ com.openai.models.responses.StructuredResponse#_topP ()Lcom/openai/core/JsonFiel
com.openai.models.responses.StructuredResponse#_truncation ()Lcom/openai/core/JsonField;
com.openai.models.responses.StructuredResponse#_usage ()Lcom/openai/core/JsonField;
com.openai.models.responses.StructuredResponse#_user ()Lcom/openai/core/JsonField;
com.openai.models.responses.StructuredResponse#accessPrograms ()Ljava/util/Optional;
com.openai.models.responses.StructuredResponse#background ()Ljava/util/Optional;
com.openai.models.responses.StructuredResponse#completedAt ()Ljava/util/Optional;
com.openai.models.responses.StructuredResponse#conversation ()Ljava/util/Optional;
Expand Down Expand Up @@ -314,6 +316,8 @@ com.openai.models.responses.StructuredResponse#validate ()Lcom/openai/models/res
com.openai.models.responses.StructuredResponseCreateParams#builder ()Lcom/openai/models/responses/StructuredResponseCreateParams$Builder;
com.openai.models.responses.StructuredResponseCreateParams#rawParams ()Lcom/openai/models/responses/ResponseCreateParams;
com.openai.models.responses.StructuredResponseCreateParams#responseType ()Ljava/lang/Class;
com.openai.models.responses.StructuredResponseCreateParams$Builder#accessPrograms (Lcom/openai/core/JsonField;)Lcom/openai/models/responses/StructuredResponseCreateParams$Builder;
com.openai.models.responses.StructuredResponseCreateParams$Builder#accessPrograms (Lcom/openai/models/responses/ResponseCreateParams$AccessPrograms;)Lcom/openai/models/responses/StructuredResponseCreateParams$Builder;
com.openai.models.responses.StructuredResponseCreateParams$Builder#addCodeInterpreterTool (Lcom/openai/models/responses/Tool$CodeInterpreter$Container$CodeInterpreterToolAuto;)Lcom/openai/models/responses/StructuredResponseCreateParams$Builder;
com.openai.models.responses.StructuredResponseCreateParams$Builder#addCodeInterpreterTool (Lcom/openai/models/responses/Tool$CodeInterpreter$Container;)Lcom/openai/models/responses/StructuredResponseCreateParams$Builder;
com.openai.models.responses.StructuredResponseCreateParams$Builder#addCodeInterpreterTool (Ljava/lang/String;)Lcom/openai/models/responses/StructuredResponseCreateParams$Builder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ private constructor(
* @throws OpenAIInvalidDataException in the default implementation.
*/
fun unknown(json: JsonValue?): T {
throw OpenAIInvalidDataException("Unknown AllModels: $json")
throw OpenAIInvalidDataException("Unknown AllModels")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ private constructor(
* @throws OpenAIInvalidDataException in the default implementation.
*/
fun unknown(json: JsonValue?): T {
throw OpenAIInvalidDataException("Unknown Value: $json")
throw OpenAIInvalidDataException("Unknown Value")
}
}

Expand Down Expand Up @@ -902,7 +902,7 @@ private constructor(
* @throws OpenAIInvalidDataException in the default implementation.
*/
fun unknown(json: JsonValue?): T {
throw OpenAIInvalidDataException("Unknown ComparisonFilterValueItem: $json")
throw OpenAIInvalidDataException("Unknown ComparisonFilterValueItem")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ private constructor(
* @throws OpenAIInvalidDataException in the default implementation.
*/
fun unknown(json: JsonValue?): T {
throw OpenAIInvalidDataException("Unknown Filter: $json")
throw OpenAIInvalidDataException("Unknown Filter")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ private constructor(
* @throws OpenAIInvalidDataException in the default implementation.
*/
fun unknown(json: JsonValue?): T {
throw OpenAIInvalidDataException("Unknown CustomToolInputFormat: $json")
throw OpenAIInvalidDataException("Unknown CustomToolInputFormat")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ private constructor(
* @throws OpenAIInvalidDataException in the default implementation.
*/
fun unknown(json: JsonValue?): T {
throw OpenAIInvalidDataException("Unknown ResponsesModel: $json")
throw OpenAIInvalidDataException("Unknown ResponsesModel")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9101,7 +9101,7 @@ private constructor(
* @throws OpenAIInvalidDataException in the default implementation.
*/
fun unknown(json: JsonValue?): T {
throw OpenAIInvalidDataException("Unknown Provider: $json")
throw OpenAIInvalidDataException("Unknown Provider")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ private constructor(
* @throws OpenAIInvalidDataException in the default implementation.
*/
fun unknown(json: JsonValue?): T {
throw OpenAIInvalidDataException("Unknown Provider: $json")
throw OpenAIInvalidDataException("Unknown Provider")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ private constructor(
* @throws OpenAIInvalidDataException in the default implementation.
*/
fun unknown(json: JsonValue?): T {
throw OpenAIInvalidDataException("Unknown Provider: $json")
throw OpenAIInvalidDataException("Unknown Provider")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1287,7 +1287,7 @@ private constructor(
* @throws OpenAIInvalidDataException in the default implementation.
*/
fun unknown(json: JsonValue?): T {
throw OpenAIInvalidDataException("Unknown Result: $json")
throw OpenAIInvalidDataException("Unknown Result")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1290,7 +1290,7 @@ private constructor(
* @throws OpenAIInvalidDataException in the default implementation.
*/
fun unknown(json: JsonValue?): T {
throw OpenAIInvalidDataException("Unknown Result: $json")
throw OpenAIInvalidDataException("Unknown Result")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1291,7 +1291,7 @@ private constructor(
* @throws OpenAIInvalidDataException in the default implementation.
*/
fun unknown(json: JsonValue?): T {
throw OpenAIInvalidDataException("Unknown Result: $json")
throw OpenAIInvalidDataException("Unknown Result")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1287,7 +1287,7 @@ private constructor(
* @throws OpenAIInvalidDataException in the default implementation.
*/
fun unknown(json: JsonValue?): T {
throw OpenAIInvalidDataException("Unknown Result: $json")
throw OpenAIInvalidDataException("Unknown Result")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1287,7 +1287,7 @@ private constructor(
* @throws OpenAIInvalidDataException in the default implementation.
*/
fun unknown(json: JsonValue?): T {
throw OpenAIInvalidDataException("Unknown Result: $json")
throw OpenAIInvalidDataException("Unknown Result")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1287,7 +1287,7 @@ private constructor(
* @throws OpenAIInvalidDataException in the default implementation.
*/
fun unknown(json: JsonValue?): T {
throw OpenAIInvalidDataException("Unknown Result: $json")
throw OpenAIInvalidDataException("Unknown Result")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1287,7 +1287,7 @@ private constructor(
* @throws OpenAIInvalidDataException in the default implementation.
*/
fun unknown(json: JsonValue?): T {
throw OpenAIInvalidDataException("Unknown Result: $json")
throw OpenAIInvalidDataException("Unknown Result")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1287,7 +1287,7 @@ private constructor(
* @throws OpenAIInvalidDataException in the default implementation.
*/
fun unknown(json: JsonValue?): T {
throw OpenAIInvalidDataException("Unknown Result: $json")
throw OpenAIInvalidDataException("Unknown Result")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1287,7 +1287,7 @@ private constructor(
* @throws OpenAIInvalidDataException in the default implementation.
*/
fun unknown(json: JsonValue?): T {
throw OpenAIInvalidDataException("Unknown Result: $json")
throw OpenAIInvalidDataException("Unknown Result")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1287,7 +1287,7 @@ private constructor(
* @throws OpenAIInvalidDataException in the default implementation.
*/
fun unknown(json: JsonValue?): T {
throw OpenAIInvalidDataException("Unknown Result: $json")
throw OpenAIInvalidDataException("Unknown Result")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1287,7 +1287,7 @@ private constructor(
* @throws OpenAIInvalidDataException in the default implementation.
*/
fun unknown(json: JsonValue?): T {
throw OpenAIInvalidDataException("Unknown Result: $json")
throw OpenAIInvalidDataException("Unknown Result")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -980,6 +980,13 @@ private constructor(

fun string(): Optional<String> = Optional.ofNullable(string)

/**
* The voice to use when generating the audio. Supported built-in voices are `alloy`, `ash`,
* `ballad`, `coral`, `echo`, `fable`, `onyx`, `nova`, `sage`, `shimmer`, `verse`, `marin`,
* and `cedar`. You may also provide a custom voice object with an `id`, for example `{
* "id": "voice_1234" }`. Previews of the voices are available in the
* [Text to speech guide](https://developers.openai.com/api/docs/guides/text-to-speech#voice-options).
*/
fun unionMember1(): Optional<UnionMember1> = Optional.ofNullable(unionMember1)

/** Custom voice reference. */
Expand All @@ -993,6 +1000,13 @@ private constructor(

fun asString(): String = string.getOrThrow("string")

/**
* The voice to use when generating the audio. Supported built-in voices are `alloy`, `ash`,
* `ballad`, `coral`, `echo`, `fable`, `onyx`, `nova`, `sage`, `shimmer`, `verse`, `marin`,
* and `cedar`. You may also provide a custom voice object with an `id`, for example `{
* "id": "voice_1234" }`. Previews of the voices are available in the
* [Text to speech guide](https://developers.openai.com/api/docs/guides/text-to-speech#voice-options).
*/
fun asUnionMember1(): UnionMember1 = unionMember1.getOrThrow("unionMember1")

/** Custom voice reference. */
Expand Down Expand Up @@ -1124,6 +1138,14 @@ private constructor(

@JvmStatic fun ofString(string: String) = Voice(string = string)

/**
* The voice to use when generating the audio. Supported built-in voices are `alloy`,
* `ash`, `ballad`, `coral`, `echo`, `fable`, `onyx`, `nova`, `sage`, `shimmer`,
* `verse`, `marin`, and `cedar`. You may also provide a custom voice object with an
* `id`, for example `{ "id": "voice_1234" }`. Previews of the voices are available in
* the
* [Text to speech guide](https://developers.openai.com/api/docs/guides/text-to-speech#voice-options).
*/
@JvmStatic
fun ofUnionMember1(unionMember1: UnionMember1) = Voice(unionMember1 = unionMember1)

Expand All @@ -1136,6 +1158,14 @@ private constructor(

fun visitString(string: String): T

/**
* The voice to use when generating the audio. Supported built-in voices are `alloy`,
* `ash`, `ballad`, `coral`, `echo`, `fable`, `onyx`, `nova`, `sage`, `shimmer`,
* `verse`, `marin`, and `cedar`. You may also provide a custom voice object with an
* `id`, for example `{ "id": "voice_1234" }`. Previews of the voices are available in
* the
* [Text to speech guide](https://developers.openai.com/api/docs/guides/text-to-speech#voice-options).
*/
fun visitUnionMember1(unionMember1: UnionMember1): T

/** Custom voice reference. */
Expand All @@ -1152,7 +1182,7 @@ private constructor(
* @throws OpenAIInvalidDataException in the default implementation.
*/
fun unknown(json: JsonValue?): T {
throw OpenAIInvalidDataException("Unknown Voice: $json")
throw OpenAIInvalidDataException("Unknown Voice")
}
}

Expand Down Expand Up @@ -1206,6 +1236,13 @@ private constructor(
}
}

/**
* The voice to use when generating the audio. Supported built-in voices are `alloy`, `ash`,
* `ballad`, `coral`, `echo`, `fable`, `onyx`, `nova`, `sage`, `shimmer`, `verse`, `marin`,
* and `cedar`. You may also provide a custom voice object with an `id`, for example `{
* "id": "voice_1234" }`. Previews of the voices are available in the
* [Text to speech guide](https://developers.openai.com/api/docs/guides/text-to-speech#voice-options).
*/
class UnionMember1 @JsonCreator private constructor(private val value: JsonField<String>) :
Enum {

Expand Down Expand Up @@ -1241,6 +1278,12 @@ private constructor(

@JvmField val CEDAR = of("cedar")

@JvmField val FABLE = of("fable")

@JvmField val ONYX = of("onyx")

@JvmField val NOVA = of("nova")

@JvmStatic fun of(value: String) = UnionMember1(JsonField.of(value))
}

Expand All @@ -1256,6 +1299,9 @@ private constructor(
VERSE,
MARIN,
CEDAR,
FABLE,
ONYX,
NOVA,
}

/**
Expand All @@ -1278,6 +1324,9 @@ private constructor(
VERSE,
MARIN,
CEDAR,
FABLE,
ONYX,
NOVA,
/**
* An enum member indicating that [UnionMember1] was instantiated with an unknown
* value.
Expand All @@ -1304,6 +1353,9 @@ private constructor(
VERSE -> Value.VERSE
MARIN -> Value.MARIN
CEDAR -> Value.CEDAR
FABLE -> Value.FABLE
ONYX -> Value.ONYX
NOVA -> Value.NOVA
else -> Value._UNKNOWN
}

Expand All @@ -1328,6 +1380,9 @@ private constructor(
VERSE -> Known.VERSE
MARIN -> Known.MARIN
CEDAR -> Known.CEDAR
FABLE -> Known.FABLE
ONYX -> Known.ONYX
NOVA -> Known.NOVA
else -> throw OpenAIInvalidDataException("Unknown UnionMember1: $value")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ private constructor(
* @throws OpenAIInvalidDataException in the default implementation.
*/
fun unknown(json: JsonValue?): T {
throw OpenAIInvalidDataException("Unknown Usage: $json")
throw OpenAIInvalidDataException("Unknown Usage")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ import kotlin.jvm.optionals.getOrNull
/**
* Transcribes audio into the input language.
*
* Returns a transcription object in `json`, `diarized_json`, or `verbose_json` format, or a stream
* of transcript events.
* Returns a transcription object in `json`, `diarized_json`, or `verbose_json` format, plain text
* in `text`, `srt`, or `vtt` format, or a stream of transcript events. Supported formats depend on
* the model.
*/
class TranscriptionCreateParams
private constructor(
Expand Down Expand Up @@ -1844,7 +1845,7 @@ private constructor(
* @throws OpenAIInvalidDataException in the default implementation.
*/
fun unknown(json: JsonValue?): T {
throw OpenAIInvalidDataException("Unknown ChunkingStrategy: $json")
throw OpenAIInvalidDataException("Unknown ChunkingStrategy")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ private constructor(
* @throws OpenAIInvalidDataException in the default implementation.
*/
fun unknown(json: JsonValue?): T {
throw OpenAIInvalidDataException("Unknown TranscriptionCreateResponse: $json")
throw OpenAIInvalidDataException("Unknown TranscriptionCreateResponse")
}
}

Expand Down
Loading
Loading