Skip to content

Commit 6b2a38f

Browse files
feat(api): fix grader input list, add dated slugs for sora-2
1 parent bc759dc commit 6b2a38f

File tree

7 files changed

+87
-408
lines changed

7 files changed

+87
-408
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 136
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-386042697a8769999956bdc26ff1e70bfc2a56913f724eedc6bfaf82679e9956.yml
3-
openapi_spec_hash: 7072a6a4a43d7ff0bb4098a3e8a6b9a7
4-
config_hash: 141b101c9f13b90e21af74e1686f1f41
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-fe8e67bdc351a518b113ab48e775750190e207807903d6b03ab22c438c38a588.yml
3+
openapi_spec_hash: 8af972190647ffb9dcec516e19d8761a
4+
config_hash: 856bee50ee3617e85a9bc9274db01dbb

api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ Methods:
301301

302302
Types:
303303

304+
- <code><a href="./src/resources/graders/grader-models.ts">GraderInputs</a></code>
304305
- <code><a href="./src/resources/graders/grader-models.ts">LabelModelGrader</a></code>
305306
- <code><a href="./src/resources/graders/grader-models.ts">MultiGrader</a></code>
306307
- <code><a href="./src/resources/graders/grader-models.ts">PythonGrader</a></code>

src/resources/evals/evals.ts

Lines changed: 3 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -776,15 +776,9 @@ export namespace EvalCreateParams {
776776
| string
777777
| ResponsesAPI.ResponseInputText
778778
| EvalItem.OutputText
779-
| EvalItem.EvalItemInputImage
779+
| EvalItem.InputImage
780780
| ResponsesAPI.ResponseInputAudio
781-
| Array<
782-
| string
783-
| ResponsesAPI.ResponseInputText
784-
| EvalItem.OutputText
785-
| EvalItem.EvalItemInputImage
786-
| ResponsesAPI.ResponseInputAudio
787-
>;
781+
| GraderModelsAPI.GraderInputs;
788782

789783
/**
790784
* The role of the message input. One of `user`, `assistant`, `system`, or
@@ -817,43 +811,7 @@ export namespace EvalCreateParams {
817811
/**
818812
* An image input block used within EvalItem content arrays.
819813
*/
820-
export interface EvalItemInputImage {
821-
/**
822-
* The URL of the image input.
823-
*/
824-
image_url: string;
825-
826-
/**
827-
* The type of the image input. Always `input_image`.
828-
*/
829-
type: 'input_image';
830-
831-
/**
832-
* The detail level of the image to be sent to the model. One of `high`, `low`, or
833-
* `auto`. Defaults to `auto`.
834-
*/
835-
detail?: string;
836-
}
837-
838-
/**
839-
* A text output from the model.
840-
*/
841-
export interface OutputText {
842-
/**
843-
* The text output from the model.
844-
*/
845-
text: string;
846-
847-
/**
848-
* The type of the output text. Always `output_text`.
849-
*/
850-
type: 'output_text';
851-
}
852-
853-
/**
854-
* An image input block used within EvalItem content arrays.
855-
*/
856-
export interface EvalItemInputImage {
814+
export interface InputImage {
857815
/**
858816
* The URL of the image input.
859817
*/

0 commit comments

Comments
 (0)