Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Jun 16, 2024
1 parent 45c2688 commit 09b0213
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
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-bf1cba6ecd06d0e60ecdbf9d2a7e2533b50511cb4953b5c612433cc0f7d3aa70.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-f5886a3736b6bd1bfb39dfe79ed98e15ca62147af86bc8dcbffb6106877c6b95.yml
15 changes: 6 additions & 9 deletions src/resources/prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,14 +362,13 @@ export namespace PromptConfiguration {
*/
seed: number | null;

stream: boolean;

/**
* Example: 1
*/
temperature: number;

/**
* Example: "checkWeather"
*/
toolChoice: string | null;

/**
Expand Down Expand Up @@ -502,14 +501,13 @@ export namespace PromptCreateParams {
*/
seed: number | null;

stream: boolean;

/**
* Example: 1
*/
temperature: number;

/**
* Example: "checkWeather"
*/
toolChoice: string | null;

/**
Expand Down Expand Up @@ -614,14 +612,13 @@ export namespace PromptUpdateParams {
*/
seed: number | null;

stream: boolean;

/**
* Example: 1
*/
temperature: number;

/**
* Example: "checkWeather"
*/
toolChoice: string | null;

/**
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 @@ -54,6 +54,7 @@ describe('resource prompts', () => {
maxTokens: 0,
seed: 0,
toolChoice: 'string',
stream: true,
},
tools: [{ toolId: 'string' }, { toolId: 'string' }, { toolId: 'string' }],
});
Expand Down Expand Up @@ -111,6 +112,7 @@ describe('resource prompts', () => {
maxTokens: 0,
seed: 0,
toolChoice: 'string',
stream: true,
},
tools: [{ toolId: 'string' }, { toolId: 'string' }, { toolId: 'string' }],
});
Expand Down Expand Up @@ -161,6 +163,7 @@ describe('resource prompts', () => {
maxTokens: 0,
seed: 0,
toolChoice: 'string',
stream: true,
},
tools: [{ toolId: 'string' }, { toolId: 'string' }, { toolId: 'string' }],
});
Expand Down Expand Up @@ -218,6 +221,7 @@ describe('resource prompts', () => {
maxTokens: 0,
seed: 0,
toolChoice: 'string',
stream: true,
},
tools: [{ toolId: 'string' }, { toolId: 'string' }, { toolId: 'string' }],
});
Expand Down

0 comments on commit 09b0213

Please sign in to comment.