Skip to content

Commit e4fad47

Browse files
feat(api): OpenAPI spec update via Stainless API (#95)
1 parent 7e77b99 commit e4fad47

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
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-cda2d45e20e1f02206e927055340f82767dae13b0fd16849300b7b1252246e90.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-27e00076c32b4d01f49438c1db3d4efd946ea82e8e2af8d9ad0af43b2ed0cc58.yml

src/resources/evaluations.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export interface Evaluation {
5656
promptId: string;
5757

5858
/**
59-
* The variables to in the prompt when evaluating the prompt.
59+
* The template variables added to the prompt when executing the prompt.
6060
*/
6161
variables: Record<string, string | null>;
6262
}
@@ -127,7 +127,7 @@ export interface EvaluationCreateParams {
127127
promptId: string;
128128

129129
/**
130-
* The variables to in the prompt when evaluating the prompt.
130+
* The template variables added to the prompt when executing the prompt.
131131
*/
132132
variables: Record<string, string | null>;
133133
}
@@ -192,7 +192,7 @@ export interface EvaluationUpdateParams {
192192
promptId: string;
193193

194194
/**
195-
* The variables to in the prompt when evaluating the prompt.
195+
* The template variables added to the prompt when executing the prompt.
196196
*/
197197
variables: Record<string, string | null>;
198198
}

src/resources/prompts.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -657,9 +657,9 @@ export interface PromptGetParametersParams {
657657
user?: string;
658658

659659
/**
660-
* The template variables added to the prompt when running the prompt.
660+
* The template variables added to the prompt when executing the prompt.
661661
*/
662-
variables?: Record<string, unknown>;
662+
variables?: Record<string, string | null>;
663663
}
664664

665665
export namespace PromptGetParametersParams {

tests/api-resources/prompts.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ describe('resource prompts', () => {
374374
},
375375
],
376376
user: 'string',
377-
variables: { foo: {} },
377+
variables: { foo: 'string' },
378378
},
379379
{ path: '/_stainless_unknown_path' },
380380
),

0 commit comments

Comments
 (0)