Skip to content

Commit d997a67

Browse files
chore(api): docs and spec refactoring
1 parent e85e15c commit d997a67

File tree

4 files changed

+39
-17
lines changed

4 files changed

+39
-17
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

src/resources/chat/completions/completions.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1946,9 +1946,12 @@ export interface ChatCompletionUpdateParams {
19461946

19471947
export interface ChatCompletionListParams extends CursorPageParams {
19481948
/**
1949-
* A list of metadata keys to filter the Chat Completions by. Example:
1949+
* Set of 16 key-value pairs that can be attached to an object. This can be useful
1950+
* for storing additional information about the object in a structured format, and
1951+
* querying for objects via API or the dashboard.
19501952
*
1951-
* `metadata[key1]=value1&metadata[key2]=value2`
1953+
* Keys are strings with a maximum length of 64 characters. Values are strings with
1954+
* a maximum length of 512 characters.
19521955
*/
19531956
metadata?: Shared.Metadata | null;
19541957

src/resources/conversations/conversations.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,12 @@ export interface ConversationCreateParams {
361361
items?: Array<ResponsesAPI.ResponseInputItem> | null;
362362

363363
/**
364-
* Set of 16 key-value pairs that can be attached to an object. Useful for storing
365-
* additional information about the object in a structured format.
364+
* Set of 16 key-value pairs that can be attached to an object. This can be useful
365+
* for storing additional information about the object in a structured format, and
366+
* querying for objects via API or the dashboard.
367+
*
368+
* Keys are strings with a maximum length of 64 characters. Values are strings with
369+
* a maximum length of 512 characters.
366370
*/
367371
metadata?: Shared.Metadata | null;
368372
}

src/resources/evals/runs/runs.ts

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -578,8 +578,11 @@ export namespace RunCreateResponse {
578578
model?: string | null;
579579

580580
/**
581-
* Optional reasoning effort parameter. This is a query parameter used to select
582-
* responses.
581+
* Constrains effort on reasoning for
582+
* [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently
583+
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
584+
* effort can result in faster responses and fewer tokens used on reasoning in a
585+
* response.
583586
*/
584587
reasoning_effort?: Shared.ReasoningEffort | null;
585588

@@ -1052,8 +1055,11 @@ export namespace RunRetrieveResponse {
10521055
model?: string | null;
10531056

10541057
/**
1055-
* Optional reasoning effort parameter. This is a query parameter used to select
1056-
* responses.
1058+
* Constrains effort on reasoning for
1059+
* [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently
1060+
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
1061+
* effort can result in faster responses and fewer tokens used on reasoning in a
1062+
* response.
10571063
*/
10581064
reasoning_effort?: Shared.ReasoningEffort | null;
10591065

@@ -1523,8 +1529,11 @@ export namespace RunListResponse {
15231529
model?: string | null;
15241530

15251531
/**
1526-
* Optional reasoning effort parameter. This is a query parameter used to select
1527-
* responses.
1532+
* Constrains effort on reasoning for
1533+
* [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently
1534+
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
1535+
* effort can result in faster responses and fewer tokens used on reasoning in a
1536+
* response.
15281537
*/
15291538
reasoning_effort?: Shared.ReasoningEffort | null;
15301539

@@ -2005,8 +2014,11 @@ export namespace RunCancelResponse {
20052014
model?: string | null;
20062015

20072016
/**
2008-
* Optional reasoning effort parameter. This is a query parameter used to select
2009-
* responses.
2017+
* Constrains effort on reasoning for
2018+
* [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently
2019+
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
2020+
* effort can result in faster responses and fewer tokens used on reasoning in a
2021+
* response.
20102022
*/
20112023
reasoning_effort?: Shared.ReasoningEffort | null;
20122024

@@ -2426,8 +2438,11 @@ export namespace RunCreateParams {
24262438
model?: string | null;
24272439

24282440
/**
2429-
* Optional reasoning effort parameter. This is a query parameter used to select
2430-
* responses.
2441+
* Constrains effort on reasoning for
2442+
* [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently
2443+
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
2444+
* effort can result in faster responses and fewer tokens used on reasoning in a
2445+
* response.
24312446
*/
24322447
reasoning_effort?: Shared.ReasoningEffort | null;
24332448

0 commit comments

Comments
 (0)