Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and Stainless Bot committed Jun 29, 2024
1 parent 3135092 commit 079655d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 21
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-a9e988c1c50fb5eeb661ffe2eac4481591a946f668695afb91d52cb455adacf3.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-fc846baf5f12d27d0e53b795bb0f0d62b4e0296728ae26e637aef857fcbcc6f9.yml
15 changes: 15 additions & 0 deletions src/resources/prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,11 @@ export namespace PromptConfiguration {
*/
modelName: string;

/**
* The provider of the provided model.
*/
modelProvider: 'OPENAI';

parallelToolCalls: boolean;

/**
Expand Down Expand Up @@ -488,6 +493,11 @@ export namespace PromptCreateParams {
*/
modelName: string;

/**
* The provider of the provided model.
*/
modelProvider: 'OPENAI';

parallelToolCalls: boolean;

/**
Expand Down Expand Up @@ -601,6 +611,11 @@ export namespace PromptUpdateParams {
*/
modelName: string;

/**
* The provider of the provided model.
*/
modelProvider: 'OPENAI';

parallelToolCalls: boolean;

/**
Expand Down
4 changes: 4 additions & 0 deletions tests/api-resources/prompts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ describe('resource prompts', () => {
],
name: 'string',
parameters: {
modelProvider: 'OPENAI',
modelName: 'string',
responseFormat: 'JSON',
temperature: 0,
Expand Down Expand Up @@ -104,6 +105,7 @@ describe('resource prompts', () => {
],
name: 'string',
parameters: {
modelProvider: 'OPENAI',
modelName: 'string',
responseFormat: 'JSON',
temperature: 0,
Expand Down Expand Up @@ -156,6 +158,7 @@ describe('resource prompts', () => {
],
name: 'string',
parameters: {
modelProvider: 'OPENAI',
modelName: 'string',
responseFormat: 'JSON',
temperature: 0,
Expand Down Expand Up @@ -215,6 +218,7 @@ describe('resource prompts', () => {
],
name: 'string',
parameters: {
modelProvider: 'OPENAI',
modelName: 'string',
responseFormat: 'JSON',
temperature: 0,
Expand Down

0 comments on commit 079655d

Please sign in to comment.