Skip to content

Commit 41533a2

Browse files
Merge pull request #128 from togethercomputer/ruslan/openapi-evals-type-fix
Ruslan/openapi evals type fix
2 parents 51f784b + 98eb545 commit 41533a2

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

openapi.yaml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3438,8 +3438,10 @@ paths:
34383438
]
34393439
description: The new status for the job
34403440
results:
3441-
type: object
3442-
description: Job results (required when status is 'completed')
3441+
oneOf:
3442+
- $ref: '#/components/schemas/EvaluationClassifyResults'
3443+
- $ref: '#/components/schemas/EvaluationScoreResults'
3444+
- $ref: '#/components/schemas/EvaluationCompareResults'
34433445
error:
34443446
type: string
34453447
description: Error message
@@ -6798,6 +6800,7 @@ components:
67986800
parameters:
67996801
type: object
68006802
description: The parameters used for this evaluation
6803+
additionalProperties: true
68016804
created_at:
68026805
type: string
68036806
format: date-time
@@ -6878,7 +6881,16 @@ components:
68786881
properties:
68796882
aggregated_scores:
68806883
type: object
6881-
description: Aggregated score statistics
6884+
properties:
6885+
mean_score:
6886+
type: number
6887+
format: float
6888+
std_score:
6889+
type: number
6890+
format: float
6891+
pass_percentage:
6892+
type: number
6893+
format: float
68826894
generation_fail_count:
68836895
type: number
68846896
format: integer

0 commit comments

Comments
 (0)