Skip to content

Commit a4364a3

Browse files
fix(api): fix field-level schema mismatches in Responses models
1 parent 812d9a1 commit a4364a3

3 files changed

Lines changed: 42 additions & 6 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 67
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamastack/llama-stack-client-998ebd3935c1587121c99547484f267eaf2a002446a76c53171ba2d65eca1aec.yml
3-
openapi_spec_hash: 18f3e38a067d66df2f6da3033c31be47
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamastack/llama-stack-client-d956e9a3409ef288c46a07874abb6a0aafe350e0490ac02a3d25d795769a29e3.yml
3+
openapi_spec_hash: 01119701169c1cba088e577d4b13e464
44
config_hash: 3d294831d7b8066ba59a8934b980a943

src/resources/responses/responses.ts

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,7 +1225,11 @@ export interface ResponseObject {
12251225

12261226
top_p?: number;
12271227

1228-
truncation?: string | null;
1228+
/**
1229+
* Controls how the service truncates input when it exceeds the model context
1230+
* window.
1231+
*/
1232+
truncation?: 'auto' | 'disabled' | null;
12291233

12301234
/**
12311235
* Usage information for OpenAI response.
@@ -1695,6 +1699,11 @@ export namespace ResponseObject {
16951699
export interface Reasoning {
16961700
effort?: 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | null;
16971701

1702+
/**
1703+
* @deprecated Deprecated: use 'summary' instead.
1704+
*/
1705+
generate_summary?: 'auto' | 'concise' | 'detailed' | null;
1706+
16981707
/**
16991708
* Summary mode for reasoning output. One of 'auto', 'concise', or 'detailed'.
17001709
*/
@@ -3697,7 +3706,11 @@ export interface ResponseListResponse {
36973706

36983707
top_p?: number;
36993708

3700-
truncation?: string | null;
3709+
/**
3710+
* Controls how the service truncates input when it exceeds the model context
3711+
* window.
3712+
*/
3713+
truncation?: 'auto' | 'disabled' | null;
37013714

37023715
/**
37033716
* Usage information for OpenAI response.
@@ -4636,6 +4649,11 @@ export namespace ResponseListResponse {
46364649
export interface Reasoning {
46374650
effort?: 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | null;
46384651

4652+
/**
4653+
* @deprecated Deprecated: use 'summary' instead.
4654+
*/
4655+
generate_summary?: 'auto' | 'concise' | 'detailed' | null;
4656+
46394657
/**
46404658
* Summary mode for reasoning output. One of 'auto', 'concise', or 'detailed'.
46414659
*/
@@ -5646,6 +5664,11 @@ export namespace ResponseCreateParams {
56465664
export interface Reasoning {
56475665
effort?: 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | null;
56485666

5667+
/**
5668+
* @deprecated Deprecated: use 'summary' instead.
5669+
*/
5670+
generate_summary?: 'auto' | 'concise' | 'detailed' | null;
5671+
56495672
/**
56505673
* Summary mode for reasoning output. One of 'auto', 'concise', or 'detailed'.
56515674
*/
@@ -6481,6 +6504,11 @@ export namespace ResponseCompactParams {
64816504
export interface Reasoning {
64826505
effort?: 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | null;
64836506

6507+
/**
6508+
* @deprecated Deprecated: use 'summary' instead.
6509+
*/
6510+
generate_summary?: 'auto' | 'concise' | 'detailed' | null;
6511+
64846512
/**
64856513
* Summary mode for reasoning output. One of 'auto', 'concise', or 'detailed'.
64866514
*/

tests/api-resources/responses/responses.test.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@ describe('resource responses', () => {
4646
version: 'version',
4747
},
4848
prompt_cache_key: 'prompt_cache_key',
49-
reasoning: { effort: 'none', summary: 'auto' },
49+
reasoning: {
50+
effort: 'none',
51+
generate_summary: 'auto',
52+
summary: 'auto',
53+
},
5054
service_tier: 'auto',
5155
store: true,
5256
stream: false,
@@ -158,7 +162,11 @@ describe('resource responses', () => {
158162
parallel_tool_calls: true,
159163
previous_response_id: 'previous_response_id',
160164
prompt_cache_key: 'prompt_cache_key',
161-
reasoning: { effort: 'none', summary: 'auto' },
165+
reasoning: {
166+
effort: 'none',
167+
generate_summary: 'auto',
168+
summary: 'auto',
169+
},
162170
text: {
163171
format: {
164172
description: 'description',

0 commit comments

Comments
 (0)