Skip to content

fix: UTC-107: Missing num_predictions for batch-predictions #479

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 0 additions & 83 deletions .github/workflows/git-command.yml

This file was deleted.

16 changes: 8 additions & 8 deletions .mock/definition/__package__.yml
Original file line number Diff line number Diff line change
Expand Up @@ -666,15 +666,15 @@ types:
maxLength: 256
control_weights:
type: optional<map<string, unknown>>
docs: >-
docs: >
Dict of weights for each control tag in metric calculation. Each
control tag (e.g. label or choice) will have it's own key in control
weight dict with weight for each label and overall weight.For example,
if bounding box annotation with control tag named my_bbox should be
included with 0.33 weight in agreement calculation, and the first
label Car should be twice more important than Airplaine, then you have
to need the specify: {'my_bbox': {'type': 'RectangleLabels', 'labels':
{'Car': 1.0, 'Airplaine': 0.5}, 'overall': 0.33}
control tag (e.g. label or choice) will have its own key in control
weight dict with weight for each label and overall weight. For
example, if a bounding box annotation with a control tag named my_bbox
should be included with 0.33 weight in agreement calculation, and the
first label Car should be twice as important as Airplane, then you
need to specify: \{'my_bbox': \{'type': 'RectangleLabels', 'labels':
\{'Car': 1.0, 'Airplane': 0.5}, 'overall': 0.33}}
parsed_label_config:
type: optional<map<string, unknown>>
docs: JSON-formatted labeling configuration
Expand Down
28 changes: 14 additions & 14 deletions .mock/definition/projects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ types:
default: '#FFFFFF'
control_weights:
type: optional<map<string, unknown>>
docs: >-
docs: >
Dict of weights for each control tag in metric calculation. Each
control tag (e.g. label or choice) will have its own key in control
weight dict with weight for each label and overall weight. For
example, if a bounding box annotation with a control tag named my_bbox
should be included with 0.33 weight in agreement calculation, and the
first label Car should be twice as important as Airplane, then you
need to specify: {'my_bbox': {'type': 'RectangleLabels', 'labels':
{'Car': 1.0, 'Airplane': 0.5}, 'overall': 0.33}
need to specify: \{'my_bbox': \{'type': 'RectangleLabels', 'labels':
\{'Car': 1.0, 'Airplane': 0.5}, 'overall': 0.33}}
source:
openapi: openapi/openapi.yaml
ProjectsUpdateResponse:
Expand Down Expand Up @@ -123,15 +123,15 @@ types:
default: '#FFFFFF'
control_weights:
type: optional<map<string, unknown>>
docs: >-
docs: >
Dict of weights for each control tag in metric calculation. Each
control tag (e.g. label or choice) will have its own key in control
weight dict with weight for each label and overall weight. For
example, if a bounding box annotation with a control tag named my_bbox
should be included with 0.33 weight in agreement calculation, and the
first label Car should be twice as important as Airplane, then you
need to specify: {'my_bbox': {'type': 'RectangleLabels', 'labels':
{'Car': 1.0, 'Airplane': 0.5}, 'overall': 0.33}
need to specify: \{'my_bbox': \{'type': 'RectangleLabels', 'labels':
\{'Car': 1.0, 'Airplane': 0.5}, 'overall': 0.33}}
source:
openapi: openapi/openapi.yaml
ProjectsImportTasksResponse:
Expand Down Expand Up @@ -358,16 +358,16 @@ service:
default: '#FFFFFF'
control_weights:
type: optional<map<string, unknown>>
docs: >-
docs: >
Dict of weights for each control tag in metric calculation. Each
control tag (e.g. label or choice) will have its own key in
control weight dict with weight for each label and overall
weight. For example, if a bounding box annotation with a control
tag named my_bbox should be included with 0.33 weight in
agreement calculation, and the first label Car should be twice
as important as Airplane, then you need to specify: {'my_bbox':
{'type': 'RectangleLabels', 'labels': {'Car': 1.0, 'Airplane':
0.5}, 'overall': 0.33}
as important as Airplane, then you need to specify: \{'my_bbox':
\{'type': 'RectangleLabels', 'labels': \{'Car': 1.0, 'Airplane':
0.5}, 'overall': 0.33}}
workspace:
type: optional<integer>
docs: Workspace ID
Expand Down Expand Up @@ -625,16 +625,16 @@ service:
default: '#FFFFFF'
control_weights:
type: optional<map<string, unknown>>
docs: >-
docs: >
Dict of weights for each control tag in metric calculation. Each
control tag (e.g. label or choice) will have its own key in
control weight dict with weight for each label and overall
weight. For example, if a bounding box annotation with a control
tag named my_bbox should be included with 0.33 weight in
agreement calculation, and the first label Car should be twice
as important as Airplane, then you need to specify: {'my_bbox':
{'type': 'RectangleLabels', 'labels': {'Car': 1.0, 'Airplane':
0.5}, 'overall': 0.33}
as important as Airplane, then you need to specify: \{'my_bbox':
\{'type': 'RectangleLabels', 'labels': \{'Car': 1.0, 'Airplane':
0.5}, 'overall': 0.33}}
workspace:
type: optional<integer>
docs: Workspace ID
Expand Down
8 changes: 8 additions & 0 deletions .mock/definition/prompts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ service:
display-name: Create batch predictions
request:
name: PromptsBatchPredictionsRequest
query-parameters:
num_predictions:
type: optional<integer>
docs: Number of predictions being sent
body:
properties:
modelrun_id:
Expand Down Expand Up @@ -211,6 +215,10 @@ service:
display-name: Create batch of failed predictions
request:
name: PromptsBatchFailedPredictionsRequest
query-parameters:
num_failed_predictions:
type: optional<integer>
docs: Number of failed predictions being sent
body:
properties:
modelrun_id:
Expand Down
64 changes: 34 additions & 30 deletions .mock/openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2396,15 +2396,16 @@ paths:
default: "#FFFFFF"
control_weights:
title: control_weights
description: "Dict of weights for each control tag in metric calculation. Each
control tag (e.g. label or choice) will have its own key
in control weight dict with weight for each label and
overall weight. For example, if a bounding box annotation
with a control tag named my_bbox should be included with
0.33 weight in agreement calculation, and the first label
Car should be twice as important as Airplane, then you
need to specify: {'my_bbox': {'type': 'RectangleLabels',
'labels': {'Car': 1.0, 'Airplane': 0.5}, 'overall': 0.33}"
description: >
Dict of weights for each control tag in metric calculation. Each
control tag (e.g. label or choice) will have its own key in
control weight dict with weight for each label and overall
weight. For example, if a bounding box annotation with a
control tag named my_bbox should be included with 0.33 weight
in agreement calculation, and the first label Car should be
twice as important as Airplane, then you need to specify:
\{'my_bbox': \{'type': 'RectangleLabels', 'labels': \{'Car': 1.0,
'Airplane': 0.5}, 'overall': 0.33}}
type: object
example:
my_bbox:
Expand Down Expand Up @@ -2586,15 +2587,16 @@ paths:
default: "#FFFFFF"
control_weights:
title: control_weights
description: "Dict of weights for each control tag in metric calculation. Each
control tag (e.g. label or choice) will have its own key
in control weight dict with weight for each label and
overall weight. For example, if a bounding box annotation
with a control tag named my_bbox should be included with
0.33 weight in agreement calculation, and the first label
Car should be twice as important as Airplane, then you
need to specify: {'my_bbox': {'type': 'RectangleLabels',
'labels': {'Car': 1.0, 'Airplane': 0.5}, 'overall': 0.33}"
description: >
Dict of weights for each control tag in metric calculation. Each
control tag (e.g. label or choice) will have its own key in
control weight dict with weight for each label and overall
weight. For example, if a bounding box annotation with a
control tag named my_bbox should be included with 0.33 weight
in agreement calculation, and the first label Car should be
twice as important as Airplane, then you need to specify:
\{'my_bbox': \{'type': 'RectangleLabels', 'labels': \{'Car': 1.0,
'Airplane': 0.5}, 'overall': 0.33}}
type: object
example:
my_bbox:
Expand Down Expand Up @@ -6700,15 +6702,16 @@ components:
default: "#FFFFFF"
control_weights:
title: control_weights
description: "Dict of weights for each control tag in metric calculation. Each
description: >
Dict of weights for each control tag in metric calculation. Each
control tag (e.g. label or choice) will have its own key in
control weight dict with weight for each label and overall
weight. For example, if a bounding box annotation with a
control tag named my_bbox should be included with 0.33 weight
in agreement calculation, and the first label Car should be
twice as important as Airplane, then you need to specify:
{'my_bbox': {'type': 'RectangleLabels', 'labels': {'Car': 1.0,
'Airplane': 0.5}, 'overall': 0.33}"
\{'my_bbox': \{'type': 'RectangleLabels', 'labels': \{'Car': 1.0,
'Airplane': 0.5}, 'overall': 0.33}}
type: object
example:
my_bbox:
Expand Down Expand Up @@ -8641,15 +8644,16 @@ components:
nullable: true
control_weights:
title: Control weights
description: "Dict of weights for each control tag in metric calculation. Each
control tag (e.g. label or choice) will have it's own key in control
weight dict with weight for each label and overall weight.For
example, if bounding box annotation with control tag named my_bbox
should be included with 0.33 weight in agreement calculation, and
the first label Car should be twice more important than Airplaine,
then you have to need the specify: {'my_bbox': {'type':
'RectangleLabels', 'labels': {'Car': 1.0, 'Airplaine': 0.5},
'overall': 0.33}"
description: >
Dict of weights for each control tag in metric calculation. Each
control tag (e.g. label or choice) will have its own key in
control weight dict with weight for each label and overall
weight. For example, if a bounding box annotation with a
control tag named my_bbox should be included with 0.33 weight
in agreement calculation, and the first label Car should be
twice as important as Airplane, then you need to specify:
\{'my_bbox': \{'type': 'RectangleLabels', 'labels': \{'Car': 1.0,
'Airplane': 0.5}, 'overall': 0.33}}
type: object
nullable: true
parsed_label_config:
Expand Down
Loading
Loading