Skip to content

Commit 66327c5

Browse files
feat(api): responses x eval api
1 parent e123fdd commit 66327c5

24 files changed

+7153
-23900
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 99
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-794a6ed3c3d3d77887564755168056af8a426b17cf1ec721e3a300503dc22a41.yml
3-
openapi_spec_hash: 25a81c220713cd5b0bafc221d1dfa79a
4-
config_hash: 0b768ed1b56c6d82816f0fa40dc4aaf5
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-161ca7f1cfd7b33c1fc07d0ce25dfe4be5a7271c394f4cb526b7fb21b0729900.yml
3+
openapi_spec_hash: 602e14add4bee018c6774e320ce309b8
4+
config_hash: 7da27f7260075e8813ddcea542fba1bf

openai-java-core/src/main/kotlin/com/openai/models/audio/transcriptions/TranscriptionCreateParams.kt

Lines changed: 730 additions & 4 deletions
Large diffs are not rendered by default.

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

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ private constructor(
4343
/**
4444
* Input text to embed, encoded as a string or array of tokens. To embed multiple inputs in a
4545
* single request, pass an array of strings or array of token arrays. The input must not exceed
46-
* the max input tokens for the model (8192 tokens for `text-embedding-ada-002`), cannot be an
47-
* empty string, and any array must be 2048 dimensions or less.
46+
* the max input tokens for the model (8192 tokens for all embedding models), cannot be an empty
47+
* string, and any array must be 2048 dimensions or less.
4848
* [Example Python code](https://cookbook.openai.com/examples/how_to_count_tokens_with_tiktoken)
49-
* for counting tokens. Some models may also impose a limit on total number of tokens summed
50-
* across inputs.
49+
* for counting tokens. In addition to the per-input token limit, all embedding models enforce a
50+
* maximum of 300,000 tokens summed across all inputs in a single request.
5151
*
5252
* @throws OpenAIInvalidDataException if the JSON field has an unexpected type or is
5353
* unexpectedly missing or null (e.g. if the server responded with an unexpected value).
@@ -181,11 +181,11 @@ private constructor(
181181
/**
182182
* Input text to embed, encoded as a string or array of tokens. To embed multiple inputs in
183183
* a single request, pass an array of strings or array of token arrays. The input must not
184-
* exceed the max input tokens for the model (8192 tokens for `text-embedding-ada-002`),
185-
* cannot be an empty string, and any array must be 2048 dimensions or less.
184+
* exceed the max input tokens for the model (8192 tokens for all embedding models), cannot
185+
* be an empty string, and any array must be 2048 dimensions or less.
186186
* [Example Python code](https://cookbook.openai.com/examples/how_to_count_tokens_with_tiktoken)
187-
* for counting tokens. Some models may also impose a limit on total number of tokens summed
188-
* across inputs.
187+
* for counting tokens. In addition to the per-input token limit, all embedding models
188+
* enforce a maximum of 300,000 tokens summed across all inputs in a single request.
189189
*/
190190
fun input(input: Input) = apply { body.input(input) }
191191

@@ -460,11 +460,11 @@ private constructor(
460460
/**
461461
* Input text to embed, encoded as a string or array of tokens. To embed multiple inputs in
462462
* a single request, pass an array of strings or array of token arrays. The input must not
463-
* exceed the max input tokens for the model (8192 tokens for `text-embedding-ada-002`),
464-
* cannot be an empty string, and any array must be 2048 dimensions or less.
463+
* exceed the max input tokens for the model (8192 tokens for all embedding models), cannot
464+
* be an empty string, and any array must be 2048 dimensions or less.
465465
* [Example Python code](https://cookbook.openai.com/examples/how_to_count_tokens_with_tiktoken)
466-
* for counting tokens. Some models may also impose a limit on total number of tokens summed
467-
* across inputs.
466+
* for counting tokens. In addition to the per-input token limit, all embedding models
467+
* enforce a maximum of 300,000 tokens summed across all inputs in a single request.
468468
*
469469
* @throws OpenAIInvalidDataException if the JSON field has an unexpected type or is
470470
* unexpectedly missing or null (e.g. if the server responded with an unexpected value).
@@ -598,12 +598,11 @@ private constructor(
598598
/**
599599
* Input text to embed, encoded as a string or array of tokens. To embed multiple inputs
600600
* in a single request, pass an array of strings or array of token arrays. The input
601-
* must not exceed the max input tokens for the model (8192 tokens for
602-
* `text-embedding-ada-002`), cannot be an empty string, and any array must be 2048
603-
* dimensions or less.
601+
* must not exceed the max input tokens for the model (8192 tokens for all embedding
602+
* models), cannot be an empty string, and any array must be 2048 dimensions or less.
604603
* [Example Python code](https://cookbook.openai.com/examples/how_to_count_tokens_with_tiktoken)
605-
* for counting tokens. Some models may also impose a limit on total number of tokens
606-
* summed across inputs.
604+
* for counting tokens. In addition to the per-input token limit, all embedding models
605+
* enforce a maximum of 300,000 tokens summed across all inputs in a single request.
607606
*/
608607
fun input(input: Input) = input(JsonField.of(input))
609608

@@ -807,11 +806,11 @@ private constructor(
807806
/**
808807
* Input text to embed, encoded as a string or array of tokens. To embed multiple inputs in a
809808
* single request, pass an array of strings or array of token arrays. The input must not exceed
810-
* the max input tokens for the model (8192 tokens for `text-embedding-ada-002`), cannot be an
811-
* empty string, and any array must be 2048 dimensions or less.
809+
* the max input tokens for the model (8192 tokens for all embedding models), cannot be an empty
810+
* string, and any array must be 2048 dimensions or less.
812811
* [Example Python code](https://cookbook.openai.com/examples/how_to_count_tokens_with_tiktoken)
813-
* for counting tokens. Some models may also impose a limit on total number of tokens summed
814-
* across inputs.
812+
* for counting tokens. In addition to the per-input token limit, all embedding models enforce a
813+
* maximum of 300,000 tokens summed across all inputs in a single request.
815814
*/
816815
@JsonDeserialize(using = Input.Deserializer::class)
817816
@JsonSerialize(using = Input.Serializer::class)

0 commit comments

Comments
 (0)