Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Jun 26, 2024
1 parent df3a9a0 commit 07b9a2e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 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-cda2d45e20e1f02206e927055340f82767dae13b0fd16849300b7b1252246e90.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-27e00076c32b4d01f49438c1db3d4efd946ea82e8e2af8d9ad0af43b2ed0cc58.yml
6 changes: 3 additions & 3 deletions src/resources/evaluations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export interface Evaluation {
promptId: string;

/**
* The variables to in the prompt when evaluating the prompt.
* The template variables added to the prompt when executing the prompt.
*/
variables: Record<string, string | null>;
}
Expand Down Expand Up @@ -127,7 +127,7 @@ export interface EvaluationCreateParams {
promptId: string;

/**
* The variables to in the prompt when evaluating the prompt.
* The template variables added to the prompt when executing the prompt.
*/
variables: Record<string, string | null>;
}
Expand Down Expand Up @@ -192,7 +192,7 @@ export interface EvaluationUpdateParams {
promptId: string;

/**
* The variables to in the prompt when evaluating the prompt.
* The template variables added to the prompt when executing the prompt.
*/
variables: Record<string, string | null>;
}
Expand Down
4 changes: 2 additions & 2 deletions src/resources/prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -657,9 +657,9 @@ export interface PromptGetParametersParams {
user?: string;

/**
* The template variables added to the prompt when running the prompt.
* The template variables added to the prompt when executing the prompt.
*/
variables?: Record<string, unknown>;
variables?: Record<string, string | null>;
}

export namespace PromptGetParametersParams {
Expand Down
2 changes: 1 addition & 1 deletion tests/api-resources/prompts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ describe('resource prompts', () => {
},
],
user: 'string',
variables: { foo: {} },
variables: { foo: 'string' },
},
{ path: '/_stainless_unknown_path' },
),
Expand Down

0 comments on commit 07b9a2e

Please sign in to comment.