Skip to content

Commit bbf2aea

Browse files
robot-ci-heartexfern-api[bot]farioas
authored
fix: UTC-107: Missing num_predictions for batch-predictions (#479)
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Co-authored-by: farioas <[email protected]>
1 parent 98c8bdd commit bbf2aea

File tree

13 files changed

+179
-200
lines changed

13 files changed

+179
-200
lines changed

.github/workflows/git-command.yml

Lines changed: 0 additions & 83 deletions
This file was deleted.

.mock/definition/__package__.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -666,15 +666,15 @@ types:
666666
maxLength: 256
667667
control_weights:
668668
type: optional<map<string, unknown>>
669-
docs: >-
669+
docs: >
670670
Dict of weights for each control tag in metric calculation. Each
671-
control tag (e.g. label or choice) will have it's own key in control
672-
weight dict with weight for each label and overall weight.For example,
673-
if bounding box annotation with control tag named my_bbox should be
674-
included with 0.33 weight in agreement calculation, and the first
675-
label Car should be twice more important than Airplaine, then you have
676-
to need the specify: {'my_bbox': {'type': 'RectangleLabels', 'labels':
677-
{'Car': 1.0, 'Airplaine': 0.5}, 'overall': 0.33}
671+
control tag (e.g. label or choice) will have its own key in control
672+
weight dict with weight for each label and overall weight. For
673+
example, if a bounding box annotation with a control tag named my_bbox
674+
should be included with 0.33 weight in agreement calculation, and the
675+
first label Car should be twice as important as Airplane, then you
676+
need to specify: \{'my_bbox': \{'type': 'RectangleLabels', 'labels':
677+
\{'Car': 1.0, 'Airplane': 0.5}, 'overall': 0.33}}
678678
parsed_label_config:
679679
type: optional<map<string, unknown>>
680680
docs: JSON-formatted labeling configuration

.mock/definition/projects.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ types:
6262
default: '#FFFFFF'
6363
control_weights:
6464
type: optional<map<string, unknown>>
65-
docs: >-
65+
docs: >
6666
Dict of weights for each control tag in metric calculation. Each
6767
control tag (e.g. label or choice) will have its own key in control
6868
weight dict with weight for each label and overall weight. For
6969
example, if a bounding box annotation with a control tag named my_bbox
7070
should be included with 0.33 weight in agreement calculation, and the
7171
first label Car should be twice as important as Airplane, then you
72-
need to specify: {'my_bbox': {'type': 'RectangleLabels', 'labels':
73-
{'Car': 1.0, 'Airplane': 0.5}, 'overall': 0.33}
72+
need to specify: \{'my_bbox': \{'type': 'RectangleLabels', 'labels':
73+
\{'Car': 1.0, 'Airplane': 0.5}, 'overall': 0.33}}
7474
source:
7575
openapi: openapi/openapi.yaml
7676
ProjectsUpdateResponse:
@@ -123,15 +123,15 @@ types:
123123
default: '#FFFFFF'
124124
control_weights:
125125
type: optional<map<string, unknown>>
126-
docs: >-
126+
docs: >
127127
Dict of weights for each control tag in metric calculation. Each
128128
control tag (e.g. label or choice) will have its own key in control
129129
weight dict with weight for each label and overall weight. For
130130
example, if a bounding box annotation with a control tag named my_bbox
131131
should be included with 0.33 weight in agreement calculation, and the
132132
first label Car should be twice as important as Airplane, then you
133-
need to specify: {'my_bbox': {'type': 'RectangleLabels', 'labels':
134-
{'Car': 1.0, 'Airplane': 0.5}, 'overall': 0.33}
133+
need to specify: \{'my_bbox': \{'type': 'RectangleLabels', 'labels':
134+
\{'Car': 1.0, 'Airplane': 0.5}, 'overall': 0.33}}
135135
source:
136136
openapi: openapi/openapi.yaml
137137
ProjectsImportTasksResponse:
@@ -358,16 +358,16 @@ service:
358358
default: '#FFFFFF'
359359
control_weights:
360360
type: optional<map<string, unknown>>
361-
docs: >-
361+
docs: >
362362
Dict of weights for each control tag in metric calculation. Each
363363
control tag (e.g. label or choice) will have its own key in
364364
control weight dict with weight for each label and overall
365365
weight. For example, if a bounding box annotation with a control
366366
tag named my_bbox should be included with 0.33 weight in
367367
agreement calculation, and the first label Car should be twice
368-
as important as Airplane, then you need to specify: {'my_bbox':
369-
{'type': 'RectangleLabels', 'labels': {'Car': 1.0, 'Airplane':
370-
0.5}, 'overall': 0.33}
368+
as important as Airplane, then you need to specify: \{'my_bbox':
369+
\{'type': 'RectangleLabels', 'labels': \{'Car': 1.0, 'Airplane':
370+
0.5}, 'overall': 0.33}}
371371
workspace:
372372
type: optional<integer>
373373
docs: Workspace ID
@@ -625,16 +625,16 @@ service:
625625
default: '#FFFFFF'
626626
control_weights:
627627
type: optional<map<string, unknown>>
628-
docs: >-
628+
docs: >
629629
Dict of weights for each control tag in metric calculation. Each
630630
control tag (e.g. label or choice) will have its own key in
631631
control weight dict with weight for each label and overall
632632
weight. For example, if a bounding box annotation with a control
633633
tag named my_bbox should be included with 0.33 weight in
634634
agreement calculation, and the first label Car should be twice
635-
as important as Airplane, then you need to specify: {'my_bbox':
636-
{'type': 'RectangleLabels', 'labels': {'Car': 1.0, 'Airplane':
637-
0.5}, 'overall': 0.33}
635+
as important as Airplane, then you need to specify: \{'my_bbox':
636+
\{'type': 'RectangleLabels', 'labels': \{'Car': 1.0, 'Airplane':
637+
0.5}, 'overall': 0.33}}
638638
workspace:
639639
type: optional<integer>
640640
docs: Workspace ID

.mock/definition/prompts.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,10 @@ service:
183183
display-name: Create batch predictions
184184
request:
185185
name: PromptsBatchPredictionsRequest
186+
query-parameters:
187+
num_predictions:
188+
type: optional<integer>
189+
docs: Number of predictions being sent
186190
body:
187191
properties:
188192
modelrun_id:
@@ -211,6 +215,10 @@ service:
211215
display-name: Create batch of failed predictions
212216
request:
213217
name: PromptsBatchFailedPredictionsRequest
218+
query-parameters:
219+
num_failed_predictions:
220+
type: optional<integer>
221+
docs: Number of failed predictions being sent
214222
body:
215223
properties:
216224
modelrun_id:

.mock/openapi/openapi.yaml

Lines changed: 34 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2396,15 +2396,16 @@ paths:
23962396
default: "#FFFFFF"
23972397
control_weights:
23982398
title: control_weights
2399-
description: "Dict of weights for each control tag in metric calculation. Each
2400-
control tag (e.g. label or choice) will have its own key
2401-
in control weight dict with weight for each label and
2402-
overall weight. For example, if a bounding box annotation
2403-
with a control tag named my_bbox should be included with
2404-
0.33 weight in agreement calculation, and the first label
2405-
Car should be twice as important as Airplane, then you
2406-
need to specify: {'my_bbox': {'type': 'RectangleLabels',
2407-
'labels': {'Car': 1.0, 'Airplane': 0.5}, 'overall': 0.33}"
2399+
description: >
2400+
Dict of weights for each control tag in metric calculation. Each
2401+
control tag (e.g. label or choice) will have its own key in
2402+
control weight dict with weight for each label and overall
2403+
weight. For example, if a bounding box annotation with a
2404+
control tag named my_bbox should be included with 0.33 weight
2405+
in agreement calculation, and the first label Car should be
2406+
twice as important as Airplane, then you need to specify:
2407+
\{'my_bbox': \{'type': 'RectangleLabels', 'labels': \{'Car': 1.0,
2408+
'Airplane': 0.5}, 'overall': 0.33}}
24082409
type: object
24092410
example:
24102411
my_bbox:
@@ -2586,15 +2587,16 @@ paths:
25862587
default: "#FFFFFF"
25872588
control_weights:
25882589
title: control_weights
2589-
description: "Dict of weights for each control tag in metric calculation. Each
2590-
control tag (e.g. label or choice) will have its own key
2591-
in control weight dict with weight for each label and
2592-
overall weight. For example, if a bounding box annotation
2593-
with a control tag named my_bbox should be included with
2594-
0.33 weight in agreement calculation, and the first label
2595-
Car should be twice as important as Airplane, then you
2596-
need to specify: {'my_bbox': {'type': 'RectangleLabels',
2597-
'labels': {'Car': 1.0, 'Airplane': 0.5}, 'overall': 0.33}"
2590+
description: >
2591+
Dict of weights for each control tag in metric calculation. Each
2592+
control tag (e.g. label or choice) will have its own key in
2593+
control weight dict with weight for each label and overall
2594+
weight. For example, if a bounding box annotation with a
2595+
control tag named my_bbox should be included with 0.33 weight
2596+
in agreement calculation, and the first label Car should be
2597+
twice as important as Airplane, then you need to specify:
2598+
\{'my_bbox': \{'type': 'RectangleLabels', 'labels': \{'Car': 1.0,
2599+
'Airplane': 0.5}, 'overall': 0.33}}
25982600
type: object
25992601
example:
26002602
my_bbox:
@@ -6700,15 +6702,16 @@ components:
67006702
default: "#FFFFFF"
67016703
control_weights:
67026704
title: control_weights
6703-
description: "Dict of weights for each control tag in metric calculation. Each
6705+
description: >
6706+
Dict of weights for each control tag in metric calculation. Each
67046707
control tag (e.g. label or choice) will have its own key in
67056708
control weight dict with weight for each label and overall
67066709
weight. For example, if a bounding box annotation with a
67076710
control tag named my_bbox should be included with 0.33 weight
67086711
in agreement calculation, and the first label Car should be
67096712
twice as important as Airplane, then you need to specify:
6710-
{'my_bbox': {'type': 'RectangleLabels', 'labels': {'Car': 1.0,
6711-
'Airplane': 0.5}, 'overall': 0.33}"
6713+
\{'my_bbox': \{'type': 'RectangleLabels', 'labels': \{'Car': 1.0,
6714+
'Airplane': 0.5}, 'overall': 0.33}}
67126715
type: object
67136716
example:
67146717
my_bbox:
@@ -8641,15 +8644,16 @@ components:
86418644
nullable: true
86428645
control_weights:
86438646
title: Control weights
8644-
description: "Dict of weights for each control tag in metric calculation. Each
8645-
control tag (e.g. label or choice) will have it's own key in control
8646-
weight dict with weight for each label and overall weight.For
8647-
example, if bounding box annotation with control tag named my_bbox
8648-
should be included with 0.33 weight in agreement calculation, and
8649-
the first label Car should be twice more important than Airplaine,
8650-
then you have to need the specify: {'my_bbox': {'type':
8651-
'RectangleLabels', 'labels': {'Car': 1.0, 'Airplaine': 0.5},
8652-
'overall': 0.33}"
8647+
description: >
8648+
Dict of weights for each control tag in metric calculation. Each
8649+
control tag (e.g. label or choice) will have its own key in
8650+
control weight dict with weight for each label and overall
8651+
weight. For example, if a bounding box annotation with a
8652+
control tag named my_bbox should be included with 0.33 weight
8653+
in agreement calculation, and the first label Car should be
8654+
twice as important as Airplane, then you need to specify:
8655+
\{'my_bbox': \{'type': 'RectangleLabels', 'labels': \{'Car': 1.0,
8656+
'Airplane': 0.5}, 'overall': 0.33}}
86538657
type: object
86548658
nullable: true
86558659
parsed_label_config:

0 commit comments

Comments
 (0)