Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and meorphis committed Jun 26, 2024
1 parent 1793f6f commit bedc6b0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 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-972b22a25d0d8bc0d4434735eb429ca11023968e7f14a1a39d48a1949386aa3b.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-cda2d45e20e1f02206e927055340f82767dae13b0fd16849300b7b1252246e90.yml
6 changes: 3 additions & 3 deletions src/resources/evaluations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export interface Evaluation {
/**
* The variables to in the prompt when evaluating the prompt.
*/
variables: Record<string, unknown>;
variables: Record<string, string | null>;
}

export namespace Evaluation {
Expand Down Expand Up @@ -129,7 +129,7 @@ export interface EvaluationCreateParams {
/**
* The variables to in the prompt when evaluating the prompt.
*/
variables: Record<string, unknown>;
variables: Record<string, string | null>;
}

export namespace EvaluationCreateParams {
Expand Down Expand Up @@ -194,7 +194,7 @@ export interface EvaluationUpdateParams {
/**
* The variables to in the prompt when evaluating the prompt.
*/
variables: Record<string, unknown>;
variables: Record<string, string | null>;
}

export namespace EvaluationUpdateParams {
Expand Down
8 changes: 4 additions & 4 deletions tests/api-resources/evaluations.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe('resource evaluations', () => {
},
],
promptId: 'string',
variables: { foo: {} },
variables: { foo: 'string' },
});
const rawResponse = await responsePromise.asResponse();
expect(rawResponse).toBeInstanceOf(Response);
Expand Down Expand Up @@ -90,7 +90,7 @@ describe('resource evaluations', () => {
},
],
promptId: 'string',
variables: { foo: {} },
variables: { foo: 'string' },
});
});

Expand Down Expand Up @@ -129,7 +129,7 @@ describe('resource evaluations', () => {
},
],
promptId: 'string',
variables: { foo: {} },
variables: { foo: 'string' },
});
const rawResponse = await responsePromise.asResponse();
expect(rawResponse).toBeInstanceOf(Response);
Expand Down Expand Up @@ -175,7 +175,7 @@ describe('resource evaluations', () => {
},
],
promptId: 'string',
variables: { foo: {} },
variables: { foo: 'string' },
});
});

Expand Down

0 comments on commit bedc6b0

Please sign in to comment.