Skip to content

Commit bedc6b0

Browse files
stainless-app[bot]meorphis
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#94)
1 parent 1793f6f commit bedc6b0

File tree

3 files changed

+8
-8
lines changed

3 files changed

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

src/resources/evaluations.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export interface Evaluation {
5858
/**
5959
* The variables to in the prompt when evaluating the prompt.
6060
*/
61-
variables: Record<string, unknown>;
61+
variables: Record<string, string | null>;
6262
}
6363

6464
export namespace Evaluation {
@@ -129,7 +129,7 @@ export interface EvaluationCreateParams {
129129
/**
130130
* The variables to in the prompt when evaluating the prompt.
131131
*/
132-
variables: Record<string, unknown>;
132+
variables: Record<string, string | null>;
133133
}
134134

135135
export namespace EvaluationCreateParams {
@@ -194,7 +194,7 @@ export interface EvaluationUpdateParams {
194194
/**
195195
* The variables to in the prompt when evaluating the prompt.
196196
*/
197-
variables: Record<string, unknown>;
197+
variables: Record<string, string | null>;
198198
}
199199

200200
export namespace EvaluationUpdateParams {

tests/api-resources/evaluations.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ describe('resource evaluations', () => {
4444
},
4545
],
4646
promptId: 'string',
47-
variables: { foo: {} },
47+
variables: { foo: 'string' },
4848
});
4949
const rawResponse = await responsePromise.asResponse();
5050
expect(rawResponse).toBeInstanceOf(Response);
@@ -90,7 +90,7 @@ describe('resource evaluations', () => {
9090
},
9191
],
9292
promptId: 'string',
93-
variables: { foo: {} },
93+
variables: { foo: 'string' },
9494
});
9595
});
9696

@@ -129,7 +129,7 @@ describe('resource evaluations', () => {
129129
},
130130
],
131131
promptId: 'string',
132-
variables: { foo: {} },
132+
variables: { foo: 'string' },
133133
});
134134
const rawResponse = await responsePromise.asResponse();
135135
expect(rawResponse).toBeInstanceOf(Response);
@@ -175,7 +175,7 @@ describe('resource evaluations', () => {
175175
},
176176
],
177177
promptId: 'string',
178-
variables: { foo: {} },
178+
variables: { foo: 'string' },
179179
});
180180
});
181181

0 commit comments

Comments
 (0)