Skip to content

Commit a713db3

Browse files
feat(api): OpenAPI spec update via Stainless API (#116)
1 parent da5dee0 commit a713db3

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
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-a9e988c1c50fb5eeb661ffe2eac4481591a946f668695afb91d52cb455adacf3.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-fc846baf5f12d27d0e53b795bb0f0d62b4e0296728ae26e637aef857fcbcc6f9.yml

src/resources/prompts.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,11 @@ export namespace PromptConfiguration {
347347
*/
348348
modelName: string;
349349

350+
/**
351+
* The provider of the provided model.
352+
*/
353+
modelProvider: 'OPENAI';
354+
350355
parallelToolCalls: boolean;
351356

352357
/**
@@ -488,6 +493,11 @@ export namespace PromptCreateParams {
488493
*/
489494
modelName: string;
490495

496+
/**
497+
* The provider of the provided model.
498+
*/
499+
modelProvider: 'OPENAI';
500+
491501
parallelToolCalls: boolean;
492502

493503
/**
@@ -601,6 +611,11 @@ export namespace PromptUpdateParams {
601611
*/
602612
modelName: string;
603613

614+
/**
615+
* The provider of the provided model.
616+
*/
617+
modelProvider: 'OPENAI';
618+
604619
parallelToolCalls: boolean;
605620

606621
/**

tests/api-resources/prompts.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ describe('resource prompts', () => {
4545
],
4646
name: 'string',
4747
parameters: {
48+
modelProvider: 'OPENAI',
4849
modelName: 'string',
4950
responseFormat: 'JSON',
5051
temperature: 0,
@@ -104,6 +105,7 @@ describe('resource prompts', () => {
104105
],
105106
name: 'string',
106107
parameters: {
108+
modelProvider: 'OPENAI',
107109
modelName: 'string',
108110
responseFormat: 'JSON',
109111
temperature: 0,
@@ -156,6 +158,7 @@ describe('resource prompts', () => {
156158
],
157159
name: 'string',
158160
parameters: {
161+
modelProvider: 'OPENAI',
159162
modelName: 'string',
160163
responseFormat: 'JSON',
161164
temperature: 0,
@@ -215,6 +218,7 @@ describe('resource prompts', () => {
215218
],
216219
name: 'string',
217220
parameters: {
221+
modelProvider: 'OPENAI',
218222
modelName: 'string',
219223
responseFormat: 'JSON',
220224
temperature: 0,

0 commit comments

Comments
 (0)