Skip to content

Commit

Permalink
feat(api): add gpt-4o-2024-11-20 model (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Nov 20, 2024
1 parent 791703c commit add4d88
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 24
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-fb9db2d2c1f0d6b39d8ee042db5d5c59acba6ad1daf47c18792c1f5fb24b3401.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-aa9b01fc0c17eb0cbc200533fc20d6a49c5e764ceaf8049e08b294532be6e9ff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ constructor(
* Your input file must be formatted as a
* [JSONL file](https://platform.openai.com/docs/api-reference/batch/request-input), and
* must be uploaded with the purpose `batch`. The file can contain up to 50,000 requests,
* and can be up to 100 MB in size.
* and can be up to 200 MB in size.
*/
@JsonProperty("input_file_id") fun inputFileId(): String? = inputFileId

Expand Down Expand Up @@ -151,7 +151,7 @@ constructor(
* Your input file must be formatted as a
* [JSONL file](https://platform.openai.com/docs/api-reference/batch/request-input), and
* must be uploaded with the purpose `batch`. The file can contain up to 50,000
* requests, and can be up to 100 MB in size.
* requests, and can be up to 200 MB in size.
*/
@JsonProperty("input_file_id")
fun inputFileId(inputFileId: String) = apply { this.inputFileId = inputFileId }
Expand Down Expand Up @@ -277,7 +277,7 @@ constructor(
* Your input file must be formatted as a
* [JSONL file](https://platform.openai.com/docs/api-reference/batch/request-input), and
* must be uploaded with the purpose `batch`. The file can contain up to 50,000 requests,
* and can be up to 100 MB in size.
* and can be up to 200 MB in size.
*/
fun inputFileId(inputFileId: String) = apply { this.inputFileId = inputFileId }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ private constructor(
private var validated: Boolean = false

/**
* The voice the model uses to respond. Supported voices are `alloy`, `ash`, `ballad`, `coral`,
* `echo`, `sage`, `shimmer`, and `verse`.
* The voice the model uses to respond. Supported voices are `ash`, `ballad`, `coral`, `sage`,
* and `verse` (also supported but not recommended are `alloy`, `echo`, and `shimmer`; these
* voices are less expressive).
*/
fun voice(): Voice = voice.getRequired("voice")

Expand All @@ -44,8 +45,9 @@ private constructor(
fun format(): Format = format.getRequired("format")

/**
* The voice the model uses to respond. Supported voices are `alloy`, `ash`, `ballad`, `coral`,
* `echo`, `sage`, `shimmer`, and `verse`.
* The voice the model uses to respond. Supported voices are `ash`, `ballad`, `coral`, `sage`,
* and `verse` (also supported but not recommended are `alloy`, `echo`, and `shimmer`; these
* voices are less expressive).
*/
@JsonProperty("voice") @ExcludeMissing fun _voice() = voice

Expand Down Expand Up @@ -87,14 +89,16 @@ private constructor(
}

/**
* The voice the model uses to respond. Supported voices are `alloy`, `ash`, `ballad`,
* `coral`, `echo`, `sage`, `shimmer`, and `verse`.
* The voice the model uses to respond. Supported voices are `ash`, `ballad`, `coral`,
* `sage`, and `verse` (also supported but not recommended are `alloy`, `echo`, and
* `shimmer`; these voices are less expressive).
*/
fun voice(voice: Voice) = voice(JsonField.of(voice))

/**
* The voice the model uses to respond. Supported voices are `alloy`, `ash`, `ballad`,
* `coral`, `echo`, `sage`, `shimmer`, and `verse`.
* The voice the model uses to respond. Supported voices are `ash`, `ballad`, `coral`,
* `sage`, and `verse` (also supported but not recommended are `alloy`, `echo`, and
* `shimmer`; these voices are less expressive).
*/
@JsonProperty("voice")
@ExcludeMissing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1629,6 +1629,8 @@ constructor(

@JvmField val GPT_4O = Model(JsonField.of("gpt-4o"))

@JvmField val GPT_4O_2024_11_20 = Model(JsonField.of("gpt-4o-2024-11-20"))

@JvmField val GPT_4O_2024_08_06 = Model(JsonField.of("gpt-4o-2024-08-06"))

@JvmField val GPT_4O_2024_05_13 = Model(JsonField.of("gpt-4o-2024-05-13"))
Expand Down Expand Up @@ -1698,6 +1700,7 @@ constructor(
O1_MINI,
O1_MINI_2024_09_12,
GPT_4O,
GPT_4O_2024_11_20,
GPT_4O_2024_08_06,
GPT_4O_2024_05_13,
GPT_4O_REALTIME_PREVIEW,
Expand Down Expand Up @@ -1734,6 +1737,7 @@ constructor(
O1_MINI,
O1_MINI_2024_09_12,
GPT_4O,
GPT_4O_2024_11_20,
GPT_4O_2024_08_06,
GPT_4O_2024_05_13,
GPT_4O_REALTIME_PREVIEW,
Expand Down Expand Up @@ -1772,6 +1776,7 @@ constructor(
O1_MINI -> Value.O1_MINI
O1_MINI_2024_09_12 -> Value.O1_MINI_2024_09_12
GPT_4O -> Value.GPT_4O
GPT_4O_2024_11_20 -> Value.GPT_4O_2024_11_20
GPT_4O_2024_08_06 -> Value.GPT_4O_2024_08_06
GPT_4O_2024_05_13 -> Value.GPT_4O_2024_05_13
GPT_4O_REALTIME_PREVIEW -> Value.GPT_4O_REALTIME_PREVIEW
Expand Down Expand Up @@ -1810,6 +1815,7 @@ constructor(
O1_MINI -> Known.O1_MINI
O1_MINI_2024_09_12 -> Known.O1_MINI_2024_09_12
GPT_4O -> Known.GPT_4O
GPT_4O_2024_11_20 -> Known.GPT_4O_2024_11_20
GPT_4O_2024_08_06 -> Known.GPT_4O_2024_08_06
GPT_4O_2024_05_13 -> Known.GPT_4O_2024_05_13
GPT_4O_REALTIME_PREVIEW -> Known.GPT_4O_REALTIME_PREVIEW
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ private constructor(

@JvmField val GPT_4O = ChatModel(JsonField.of("gpt-4o"))

@JvmField val GPT_4O_2024_11_20 = ChatModel(JsonField.of("gpt-4o-2024-11-20"))

@JvmField val GPT_4O_2024_08_06 = ChatModel(JsonField.of("gpt-4o-2024-08-06"))

@JvmField val GPT_4O_2024_05_13 = ChatModel(JsonField.of("gpt-4o-2024-05-13"))
Expand Down Expand Up @@ -109,6 +111,7 @@ private constructor(
O1_MINI,
O1_MINI_2024_09_12,
GPT_4O,
GPT_4O_2024_11_20,
GPT_4O_2024_08_06,
GPT_4O_2024_05_13,
GPT_4O_REALTIME_PREVIEW,
Expand Down Expand Up @@ -145,6 +148,7 @@ private constructor(
O1_MINI,
O1_MINI_2024_09_12,
GPT_4O,
GPT_4O_2024_11_20,
GPT_4O_2024_08_06,
GPT_4O_2024_05_13,
GPT_4O_REALTIME_PREVIEW,
Expand Down Expand Up @@ -183,6 +187,7 @@ private constructor(
O1_MINI -> Value.O1_MINI
O1_MINI_2024_09_12 -> Value.O1_MINI_2024_09_12
GPT_4O -> Value.GPT_4O
GPT_4O_2024_11_20 -> Value.GPT_4O_2024_11_20
GPT_4O_2024_08_06 -> Value.GPT_4O_2024_08_06
GPT_4O_2024_05_13 -> Value.GPT_4O_2024_05_13
GPT_4O_REALTIME_PREVIEW -> Value.GPT_4O_REALTIME_PREVIEW
Expand Down Expand Up @@ -221,6 +226,7 @@ private constructor(
O1_MINI -> Known.O1_MINI
O1_MINI_2024_09_12 -> Known.O1_MINI_2024_09_12
GPT_4O -> Known.GPT_4O
GPT_4O_2024_11_20 -> Known.GPT_4O_2024_11_20
GPT_4O_2024_08_06 -> Known.GPT_4O_2024_08_06
GPT_4O_2024_05_13 -> Known.GPT_4O_2024_05_13
GPT_4O_REALTIME_PREVIEW -> Known.GPT_4O_REALTIME_PREVIEW
Expand Down

0 comments on commit add4d88

Please sign in to comment.