Skip to content

Commit 18b5cff

Browse files
author
brandon
committed
correction
1 parent 6909beb commit 18b5cff

File tree

4 files changed

+8
-15
lines changed

4 files changed

+8
-15
lines changed

generated/docs/ImageQuery.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Name | Type | Description | Notes
1717
**confidence_threshold** | **float** | Min confidence needed to accept the response of the image query. | [readonly]
1818
**rois** | [**[ROI], none_type**](ROI.md) | An array of regions of interest (bounding boxes) collected on image | [readonly]
1919
**text** | **str, none_type** | A text field on image query. | [readonly]
20-
**done_processing** | **bool, none_type** | EDGE ONLY - Whether the image query has completed escalating and will receive no new results. | [readonly] defaults to False
20+
**done_processing** | **bool** | EDGE ONLY - Whether the image query has completed escalating and will receive no new results. | [optional] if omitted the server will use the default value of False
2121
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
2222

2323
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

generated/groundlight_openapi_client/model/image_query.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,7 @@ def openapi_types():
159159
str,
160160
none_type,
161161
), # noqa: E501
162-
"done_processing": (
163-
bool,
164-
none_type,
165-
), # noqa: E501
162+
"done_processing": (bool,), # noqa: E501
166163
}
167164

168165
@cached_property
@@ -197,7 +194,6 @@ def discriminator():
197194
"confidence_threshold", # noqa: E501
198195
"rois", # noqa: E501
199196
"text", # noqa: E501
200-
"done_processing", # noqa: E501
201197
}
202198

203199
_composed_schemas = {}
@@ -238,7 +234,6 @@ def _from_openapi_data(
238234
text (str, none_type): A text field on image query.
239235
240236
Keyword Args:
241-
done_processing (bool, none_type): EDGE ONLY - Whether the image query has completed escalating and will receive no new results.. defaults to False # noqa: E501
242237
_check_type (bool): if True, values for parameters in openapi_types
243238
will be type checked and a TypeError will be
244239
raised if the wrong type is input.
@@ -269,9 +264,9 @@ def _from_openapi_data(
269264
Animal class but this time we won't travel
270265
through its discriminator because we passed in
271266
_visited_composed_classes = (Animal,)
267+
done_processing (bool): EDGE ONLY - Whether the image query has completed escalating and will receive no new results.. [optional] if omitted the server will use the default value of False # noqa: E501
272268
"""
273269

274-
done_processing = kwargs.get("done_processing", False)
275270
_check_type = kwargs.pop("_check_type", True)
276271
_spec_property_naming = kwargs.pop("_spec_property_naming", False)
277272
_path_to_item = kwargs.pop("_path_to_item", ())
@@ -310,7 +305,6 @@ def _from_openapi_data(
310305
self.confidence_threshold = confidence_threshold
311306
self.rois = rois
312307
self.text = text
313-
self.done_processing = done_processing
314308
for var_name, var_value in kwargs.items():
315309
if (
316310
var_name not in self.attribute_map
@@ -368,6 +362,7 @@ def __init__(self, result, *args, **kwargs): # noqa: E501
368362
Animal class but this time we won't travel
369363
through its discriminator because we passed in
370364
_visited_composed_classes = (Animal,)
365+
done_processing (bool): EDGE ONLY - Whether the image query has completed escalating and will receive no new results.. [optional] if omitted the server will use the default value of False # noqa: E501
371366
"""
372367

373368
_check_type = kwargs.pop("_check_type", True)

generated/model.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generated by datamodel-codegen:
22
# filename: public-api.yaml
3-
# timestamp: 2025-03-11T17:29:10+00:00
3+
# timestamp: 2025-03-11T18:57:57+00:00
44

55
from __future__ import annotations
66

@@ -430,8 +430,9 @@ class ImageQuery(BaseModel):
430430
..., description="An array of regions of interest (bounding boxes) collected on image"
431431
)
432432
text: Optional[str] = Field(..., description="A text field on image query.")
433-
done_processing: Optional[bool] = Field(
434-
..., description="EDGE ONLY - Whether the image query has completed escalating and will receive no new results."
433+
done_processing: bool = Field(
434+
False,
435+
description="EDGE ONLY - Whether the image query has completed escalating and will receive no new results.",
435436
)
436437

437438

spec/public-api.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,16 +1102,13 @@ components:
11021102
description: A text field on image query.
11031103
done_processing:
11041104
type: boolean
1105-
nullable: true
1106-
readOnly: true
11071105
default: false
11081106
description: EDGE ONLY - Whether the image query has completed escalating
11091107
and will receive no new results.
11101108
required:
11111109
- confidence_threshold
11121110
- created_at
11131111
- detector_id
1114-
- done_processing
11151112
- id
11161113
- metadata
11171114
- patience_time

0 commit comments

Comments
 (0)