Skip to content

Commit a3f76bd

Browse files
chore(api): docs and spec refactoring
1 parent 4123cf6 commit a3f76bd

File tree

12 files changed

+252
-210
lines changed

12 files changed

+252
-210
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: 118
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-94b1e3cb0bdc616ff0c2f267c33dadd95f133b1f64e647aab6c64afb292b2793.yml
3-
openapi_spec_hash: 2395319ac9befd59b6536ae7f9564a05
4-
config_hash: 930dac3aa861344867e4ac84f037b5df
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-d30ff992a48873c1466c49f3c01f2ec8933faebff23424748f8d056065b1bcef.yml
3+
openapi_spec_hash: e933ec43b46f45c348adb78840e5808d
4+
config_hash: bf45940f0a7805b4ec2017eecdd36893

openai-java-core/src/main/kotlin/com/openai/models/beta/assistants/AssistantCreateParams.kt

Lines changed: 50 additions & 54 deletions
Large diffs are not rendered by default.

openai-java-core/src/main/kotlin/com/openai/models/beta/threads/ThreadCreateAndRunParams.kt

Lines changed: 49 additions & 51 deletions
Large diffs are not rendered by default.

openai-java-core/src/main/kotlin/com/openai/models/beta/threads/ThreadCreateParams.kt

Lines changed: 50 additions & 54 deletions
Large diffs are not rendered by default.

openai-java-core/src/main/kotlin/com/openai/models/chat/completions/ChatCompletionListParams.kt

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,12 @@ private constructor(
3535
fun limit(): Optional<Long> = Optional.ofNullable(limit)
3636

3737
/**
38-
* A list of metadata keys to filter the Chat Completions by. Example:
38+
* Set of 16 key-value pairs that can be attached to an object. This can be useful for storing
39+
* additional information about the object in a structured format, and querying for objects via
40+
* API or the dashboard.
3941
*
40-
* `metadata[key1]=value1&metadata[key2]=value2`
42+
* Keys are strings with a maximum length of 64 characters. Values are strings with a maximum
43+
* length of 512 characters.
4144
*/
4245
fun metadata(): Optional<Metadata> = Optional.ofNullable(metadata)
4346

@@ -108,9 +111,12 @@ private constructor(
108111
fun limit(limit: Optional<Long>) = limit(limit.getOrNull())
109112

110113
/**
111-
* A list of metadata keys to filter the Chat Completions by. Example:
114+
* Set of 16 key-value pairs that can be attached to an object. This can be useful for
115+
* storing additional information about the object in a structured format, and querying for
116+
* objects via API or the dashboard.
112117
*
113-
* `metadata[key1]=value1&metadata[key2]=value2`
118+
* Keys are strings with a maximum length of 64 characters. Values are strings with a
119+
* maximum length of 512 characters.
114120
*/
115121
fun metadata(metadata: Metadata?) = apply { this.metadata = metadata }
116122

openai-java-core/src/main/kotlin/com/openai/models/conversations/ConversationCreateParams.kt

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,12 @@ private constructor(
4949
fun items(): Optional<List<ResponseInputItem>> = body.items()
5050

5151
/**
52-
* Set of 16 key-value pairs that can be attached to an object. Useful for storing additional
53-
* information about the object in a structured format.
52+
* Set of 16 key-value pairs that can be attached to an object. This can be useful for storing
53+
* additional information about the object in a structured format, and querying for objects via
54+
* API or the dashboard.
55+
*
56+
* Keys are strings with a maximum length of 64 characters. Values are strings with a maximum
57+
* length of 512 characters.
5458
*
5559
* @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the
5660
* server responded with an unexpected value).
@@ -277,8 +281,12 @@ private constructor(
277281
fun addItemReferenceItem(id: String) = apply { body.addItemReferenceItem(id) }
278282

279283
/**
280-
* Set of 16 key-value pairs that can be attached to an object. Useful for storing
281-
* additional information about the object in a structured format.
284+
* Set of 16 key-value pairs that can be attached to an object. This can be useful for
285+
* storing additional information about the object in a structured format, and querying for
286+
* objects via API or the dashboard.
287+
*
288+
* Keys are strings with a maximum length of 64 characters. Values are strings with a
289+
* maximum length of 512 characters.
282290
*/
283291
fun metadata(metadata: Metadata?) = apply { body.metadata(metadata) }
284292

@@ -458,8 +466,12 @@ private constructor(
458466
fun items(): Optional<List<ResponseInputItem>> = items.getOptional("items")
459467

460468
/**
461-
* Set of 16 key-value pairs that can be attached to an object. Useful for storing
462-
* additional information about the object in a structured format.
469+
* Set of 16 key-value pairs that can be attached to an object. This can be useful for
470+
* storing additional information about the object in a structured format, and querying for
471+
* objects via API or the dashboard.
472+
*
473+
* Keys are strings with a maximum length of 64 characters. Values are strings with a
474+
* maximum length of 512 characters.
463475
*
464476
* @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the
465477
* server responded with an unexpected value).
@@ -697,8 +709,12 @@ private constructor(
697709
)
698710

699711
/**
700-
* Set of 16 key-value pairs that can be attached to an object. Useful for storing
701-
* additional information about the object in a structured format.
712+
* Set of 16 key-value pairs that can be attached to an object. This can be useful for
713+
* storing additional information about the object in a structured format, and querying
714+
* for objects via API or the dashboard.
715+
*
716+
* Keys are strings with a maximum length of 64 characters. Values are strings with a
717+
* maximum length of 512 characters.
702718
*/
703719
fun metadata(metadata: Metadata?) = metadata(JsonField.ofNullable(metadata))
704720

openai-java-core/src/main/kotlin/com/openai/models/evals/runs/RunCancelResponse.kt

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2725,8 +2725,11 @@ private constructor(
27252725
fun model(): Optional<String> = model.getOptional("model")
27262726

27272727
/**
2728-
* Optional reasoning effort parameter. This is a query parameter used to select
2729-
* responses.
2728+
* Constrains effort on reasoning for
2729+
* [reasoning models](https://platform.openai.com/docs/guides/reasoning).
2730+
* Currently supported values are `minimal`, `low`, `medium`, and `high`.
2731+
* Reducing reasoning effort can result in faster responses and fewer tokens
2732+
* used on reasoning in a response.
27302733
*
27312734
* @throws OpenAIInvalidDataException if the JSON field has an unexpected type
27322735
* (e.g. if the server responded with an unexpected value).
@@ -3037,8 +3040,11 @@ private constructor(
30373040
fun model(model: JsonField<String>) = apply { this.model = model }
30383041

30393042
/**
3040-
* Optional reasoning effort parameter. This is a query parameter used to
3041-
* select responses.
3043+
* Constrains effort on reasoning for
3044+
* [reasoning models](https://platform.openai.com/docs/guides/reasoning).
3045+
* Currently supported values are `minimal`, `low`, `medium`, and `high`.
3046+
* Reducing reasoning effort can result in faster responses and fewer tokens
3047+
* used on reasoning in a response.
30423048
*/
30433049
fun reasoningEffort(reasoningEffort: ReasoningEffort?) =
30443050
reasoningEffort(JsonField.ofNullable(reasoningEffort))

openai-java-core/src/main/kotlin/com/openai/models/evals/runs/RunCreateParams.kt

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2487,8 +2487,11 @@ private constructor(
24872487
fun model(): Optional<String> = model.getOptional("model")
24882488

24892489
/**
2490-
* Optional reasoning effort parameter. This is a query parameter used to select
2491-
* responses.
2490+
* Constrains effort on reasoning for
2491+
* [reasoning models](https://platform.openai.com/docs/guides/reasoning).
2492+
* Currently supported values are `minimal`, `low`, `medium`, and `high`.
2493+
* Reducing reasoning effort can result in faster responses and fewer tokens
2494+
* used on reasoning in a response.
24922495
*
24932496
* @throws OpenAIInvalidDataException if the JSON field has an unexpected type
24942497
* (e.g. if the server responded with an unexpected value).
@@ -2797,8 +2800,11 @@ private constructor(
27972800
fun model(model: JsonField<String>) = apply { this.model = model }
27982801

27992802
/**
2800-
* Optional reasoning effort parameter. This is a query parameter used to
2801-
* select responses.
2803+
* Constrains effort on reasoning for
2804+
* [reasoning models](https://platform.openai.com/docs/guides/reasoning).
2805+
* Currently supported values are `minimal`, `low`, `medium`, and `high`.
2806+
* Reducing reasoning effort can result in faster responses and fewer tokens
2807+
* used on reasoning in a response.
28022808
*/
28032809
fun reasoningEffort(reasoningEffort: ReasoningEffort?) =
28042810
reasoningEffort(JsonField.ofNullable(reasoningEffort))

openai-java-core/src/main/kotlin/com/openai/models/evals/runs/RunCreateResponse.kt

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2725,8 +2725,11 @@ private constructor(
27252725
fun model(): Optional<String> = model.getOptional("model")
27262726

27272727
/**
2728-
* Optional reasoning effort parameter. This is a query parameter used to select
2729-
* responses.
2728+
* Constrains effort on reasoning for
2729+
* [reasoning models](https://platform.openai.com/docs/guides/reasoning).
2730+
* Currently supported values are `minimal`, `low`, `medium`, and `high`.
2731+
* Reducing reasoning effort can result in faster responses and fewer tokens
2732+
* used on reasoning in a response.
27302733
*
27312734
* @throws OpenAIInvalidDataException if the JSON field has an unexpected type
27322735
* (e.g. if the server responded with an unexpected value).
@@ -3037,8 +3040,11 @@ private constructor(
30373040
fun model(model: JsonField<String>) = apply { this.model = model }
30383041

30393042
/**
3040-
* Optional reasoning effort parameter. This is a query parameter used to
3041-
* select responses.
3043+
* Constrains effort on reasoning for
3044+
* [reasoning models](https://platform.openai.com/docs/guides/reasoning).
3045+
* Currently supported values are `minimal`, `low`, `medium`, and `high`.
3046+
* Reducing reasoning effort can result in faster responses and fewer tokens
3047+
* used on reasoning in a response.
30423048
*/
30433049
fun reasoningEffort(reasoningEffort: ReasoningEffort?) =
30443050
reasoningEffort(JsonField.ofNullable(reasoningEffort))

openai-java-core/src/main/kotlin/com/openai/models/evals/runs/RunListResponse.kt

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2725,8 +2725,11 @@ private constructor(
27252725
fun model(): Optional<String> = model.getOptional("model")
27262726

27272727
/**
2728-
* Optional reasoning effort parameter. This is a query parameter used to select
2729-
* responses.
2728+
* Constrains effort on reasoning for
2729+
* [reasoning models](https://platform.openai.com/docs/guides/reasoning).
2730+
* Currently supported values are `minimal`, `low`, `medium`, and `high`.
2731+
* Reducing reasoning effort can result in faster responses and fewer tokens
2732+
* used on reasoning in a response.
27302733
*
27312734
* @throws OpenAIInvalidDataException if the JSON field has an unexpected type
27322735
* (e.g. if the server responded with an unexpected value).
@@ -3037,8 +3040,11 @@ private constructor(
30373040
fun model(model: JsonField<String>) = apply { this.model = model }
30383041

30393042
/**
3040-
* Optional reasoning effort parameter. This is a query parameter used to
3041-
* select responses.
3043+
* Constrains effort on reasoning for
3044+
* [reasoning models](https://platform.openai.com/docs/guides/reasoning).
3045+
* Currently supported values are `minimal`, `low`, `medium`, and `high`.
3046+
* Reducing reasoning effort can result in faster responses and fewer tokens
3047+
* used on reasoning in a response.
30423048
*/
30433049
fun reasoningEffort(reasoningEffort: ReasoningEffort?) =
30443050
reasoningEffort(JsonField.ofNullable(reasoningEffort))

0 commit comments

Comments
 (0)