Skip to content

Commit 09b0213

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#47)
1 parent 45c2688 commit 09b0213

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 21
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-bf1cba6ecd06d0e60ecdbf9d2a7e2533b50511cb4953b5c612433cc0f7d3aa70.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-f5886a3736b6bd1bfb39dfe79ed98e15ca62147af86bc8dcbffb6106877c6b95.yml

src/resources/prompts.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -362,14 +362,13 @@ export namespace PromptConfiguration {
362362
*/
363363
seed: number | null;
364364

365+
stream: boolean;
366+
365367
/**
366368
* Example: 1
367369
*/
368370
temperature: number;
369371

370-
/**
371-
* Example: "checkWeather"
372-
*/
373372
toolChoice: string | null;
374373

375374
/**
@@ -502,14 +501,13 @@ export namespace PromptCreateParams {
502501
*/
503502
seed: number | null;
504503

504+
stream: boolean;
505+
505506
/**
506507
* Example: 1
507508
*/
508509
temperature: number;
509510

510-
/**
511-
* Example: "checkWeather"
512-
*/
513511
toolChoice: string | null;
514512

515513
/**
@@ -614,14 +612,13 @@ export namespace PromptUpdateParams {
614612
*/
615613
seed: number | null;
616614

615+
stream: boolean;
616+
617617
/**
618618
* Example: 1
619619
*/
620620
temperature: number;
621621

622-
/**
623-
* Example: "checkWeather"
624-
*/
625622
toolChoice: string | null;
626623

627624
/**

tests/api-resources/prompts.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ describe('resource prompts', () => {
5454
maxTokens: 0,
5555
seed: 0,
5656
toolChoice: 'string',
57+
stream: true,
5758
},
5859
tools: [{ toolId: 'string' }, { toolId: 'string' }, { toolId: 'string' }],
5960
});
@@ -111,6 +112,7 @@ describe('resource prompts', () => {
111112
maxTokens: 0,
112113
seed: 0,
113114
toolChoice: 'string',
115+
stream: true,
114116
},
115117
tools: [{ toolId: 'string' }, { toolId: 'string' }, { toolId: 'string' }],
116118
});
@@ -161,6 +163,7 @@ describe('resource prompts', () => {
161163
maxTokens: 0,
162164
seed: 0,
163165
toolChoice: 'string',
166+
stream: true,
164167
},
165168
tools: [{ toolId: 'string' }, { toolId: 'string' }, { toolId: 'string' }],
166169
});
@@ -218,6 +221,7 @@ describe('resource prompts', () => {
218221
maxTokens: 0,
219222
seed: 0,
220223
toolChoice: 'string',
224+
stream: true,
221225
},
222226
tools: [{ toolId: 'string' }, { toolId: 'string' }, { toolId: 'string' }],
223227
});

0 commit comments

Comments
 (0)