diff --git a/generated/docs/BinaryClassificationResult.md b/generated/docs/BinaryClassificationResult.md index ce36dcd4..48184561 100644 --- a/generated/docs/BinaryClassificationResult.md +++ b/generated/docs/BinaryClassificationResult.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**confidence** | **float** | | +**confidence** | **float, none_type** | | **label** | **str** | | **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] diff --git a/generated/docs/CountingResult.md b/generated/docs/CountingResult.md index bdc002b5..b3e48e99 100644 --- a/generated/docs/CountingResult.md +++ b/generated/docs/CountingResult.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**confidence** | **float** | | +**confidence** | **float, none_type** | | **value** | **int** | | **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] diff --git a/generated/docs/Detector.md b/generated/docs/Detector.md index 590349f1..0902c379 100644 --- a/generated/docs/Detector.md +++ b/generated/docs/Detector.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **mode** | **str** | | [readonly] **mode_configuration** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [readonly] **confidence_threshold** | **float** | If the detector's prediction is below this confidence threshold, send the image query for human review. | [optional] if omitted the server will use the default value of 0.9 +**patience_time** | **float** | How long Groundlight will attempt to generate a confident prediction | [optional] if omitted the server will use the default value of 30.0 **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] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/generated/groundlight_openapi_client/api/actions_api.py b/generated/groundlight_openapi_client/api/actions_api.py index 9920219d..ee5c7086 100644 --- a/generated/groundlight_openapi_client/api/actions_api.py +++ b/generated/groundlight_openapi_client/api/actions_api.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 diff --git a/generated/groundlight_openapi_client/api/detectors_api.py b/generated/groundlight_openapi_client/api/detectors_api.py index 49159a4a..2d945476 100644 --- a/generated/groundlight_openapi_client/api/detectors_api.py +++ b/generated/groundlight_openapi_client/api/detectors_api.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 diff --git a/generated/groundlight_openapi_client/api/image_queries_api.py b/generated/groundlight_openapi_client/api/image_queries_api.py index e306da10..71187443 100644 --- a/generated/groundlight_openapi_client/api/image_queries_api.py +++ b/generated/groundlight_openapi_client/api/image_queries_api.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 diff --git a/generated/groundlight_openapi_client/api/notes_api.py b/generated/groundlight_openapi_client/api/notes_api.py index 8c20fa31..00b937e7 100644 --- a/generated/groundlight_openapi_client/api/notes_api.py +++ b/generated/groundlight_openapi_client/api/notes_api.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 diff --git a/generated/groundlight_openapi_client/api/user_api.py b/generated/groundlight_openapi_client/api/user_api.py index 986219e2..7bfbccfe 100644 --- a/generated/groundlight_openapi_client/api/user_api.py +++ b/generated/groundlight_openapi_client/api/user_api.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 diff --git a/generated/groundlight_openapi_client/api_client.py b/generated/groundlight_openapi_client/api_client.py index 57caa709..6fa02959 100644 --- a/generated/groundlight_openapi_client/api_client.py +++ b/generated/groundlight_openapi_client/api_client.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import atexit import mimetypes @@ -134,6 +133,7 @@ def __call_api( _check_type: typing.Optional[bool] = None, _content_type: typing.Optional[str] = None, ): + config = self.configuration # header parameters @@ -676,19 +676,17 @@ def __init__(self, settings=None, params_map=None, root_map=None, headers_map=No """ self.settings = settings self.params_map = params_map - self.params_map["all"].extend( - [ - "async_req", - "_host_index", - "_preload_content", - "_request_timeout", - "_return_http_data_only", - "_check_input_type", - "_check_return_type", - "_content_type", - "_spec_property_naming", - ] - ) + self.params_map["all"].extend([ + "async_req", + "_host_index", + "_preload_content", + "_request_timeout", + "_return_http_data_only", + "_check_input_type", + "_check_return_type", + "_content_type", + "_spec_property_naming", + ]) self.params_map["nullable"].extend(["_request_timeout"]) self.validations = root_map["validations"] self.allowed_values = root_map["allowed_values"] @@ -779,6 +777,7 @@ def __call__(self, *args, **kwargs): return self.callable(self, *args, **kwargs) def call_with_http_info(self, **kwargs): + try: index = ( self.api_client.configuration.server_operation_index.get( diff --git a/generated/groundlight_openapi_client/configuration.py b/generated/groundlight_openapi_client/configuration.py index a00466d2..e47e2dd0 100644 --- a/generated/groundlight_openapi_client/configuration.py +++ b/generated/groundlight_openapi_client/configuration.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import copy import logging import multiprocessing diff --git a/generated/groundlight_openapi_client/model/action.py b/generated/groundlight_openapi_client/model/action.py index b295f4dd..5f98f682 100644 --- a/generated/groundlight_openapi_client/model/action.py +++ b/generated/groundlight_openapi_client/model/action.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -200,16 +199,14 @@ def _from_openapi_data(cls, channel, recipient, include_image, *args, **kwargs): setattr(self, var_name, var_value) return self - required_properties = set( - [ - "_data_store", - "_check_type", - "_spec_property_naming", - "_path_to_item", - "_configuration", - "_visited_composed_classes", - ] - ) + required_properties = set([ + "_data_store", + "_check_type", + "_spec_property_naming", + "_path_to_item", + "_configuration", + "_visited_composed_classes", + ]) @convert_js_args_to_python_args def __init__(self, channel, recipient, include_image, *args, **kwargs): # noqa: E501 diff --git a/generated/groundlight_openapi_client/model/action_request.py b/generated/groundlight_openapi_client/model/action_request.py index f88e504b..921399b4 100644 --- a/generated/groundlight_openapi_client/model/action_request.py +++ b/generated/groundlight_openapi_client/model/action_request.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -204,16 +203,14 @@ def _from_openapi_data(cls, channel, recipient, include_image, *args, **kwargs): setattr(self, var_name, var_value) return self - required_properties = set( - [ - "_data_store", - "_check_type", - "_spec_property_naming", - "_path_to_item", - "_configuration", - "_visited_composed_classes", - ] - ) + required_properties = set([ + "_data_store", + "_check_type", + "_spec_property_naming", + "_path_to_item", + "_configuration", + "_visited_composed_classes", + ]) @convert_js_args_to_python_args def __init__(self, channel, recipient, include_image, *args, **kwargs): # noqa: E501 diff --git a/generated/groundlight_openapi_client/model/all_notes.py b/generated/groundlight_openapi_client/model/all_notes.py index 93213e35..5b68adc8 100644 --- a/generated/groundlight_openapi_client/model/all_notes.py +++ b/generated/groundlight_openapi_client/model/all_notes.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -196,16 +195,14 @@ def _from_openapi_data(cls, customer, gl, *args, **kwargs): # noqa: E501 setattr(self, var_name, var_value) return self - required_properties = set( - [ - "_data_store", - "_check_type", - "_spec_property_naming", - "_path_to_item", - "_configuration", - "_visited_composed_classes", - ] - ) + required_properties = set([ + "_data_store", + "_check_type", + "_spec_property_naming", + "_path_to_item", + "_configuration", + "_visited_composed_classes", + ]) @convert_js_args_to_python_args def __init__(self, customer, gl, *args, **kwargs): # noqa: E501 diff --git a/generated/groundlight_openapi_client/model/binary_classification_result.py b/generated/groundlight_openapi_client/model/binary_classification_result.py index c3e58eb1..86a3982b 100644 --- a/generated/groundlight_openapi_client/model/binary_classification_result.py +++ b/generated/groundlight_openapi_client/model/binary_classification_result.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -56,7 +55,12 @@ class BinaryClassificationResult(ModelNormal): allowed_values = {} - validations = {} + validations = { + ("confidence",): { + "inclusive_maximum": 1, + "inclusive_minimum": 0, + }, + } @cached_property def additional_properties_type(): @@ -89,7 +93,10 @@ def openapi_types(): and the value is attribute type. """ return { - "confidence": (float,), # noqa: E501 + "confidence": ( + float, + none_type, + ), # noqa: E501 "label": (str,), # noqa: E501 } @@ -112,7 +119,7 @@ def _from_openapi_data(cls, confidence, label, *args, **kwargs): # noqa: E501 """BinaryClassificationResult - a model defined in OpenAPI Args: - confidence (float): + confidence (float, none_type): label (str): Keyword Args: @@ -188,23 +195,21 @@ def _from_openapi_data(cls, confidence, label, *args, **kwargs): # noqa: E501 setattr(self, var_name, var_value) return self - required_properties = set( - [ - "_data_store", - "_check_type", - "_spec_property_naming", - "_path_to_item", - "_configuration", - "_visited_composed_classes", - ] - ) + required_properties = set([ + "_data_store", + "_check_type", + "_spec_property_naming", + "_path_to_item", + "_configuration", + "_visited_composed_classes", + ]) @convert_js_args_to_python_args def __init__(self, confidence, label, *args, **kwargs): # noqa: E501 """BinaryClassificationResult - a model defined in OpenAPI Args: - confidence (float): + confidence (float, none_type): label (str): Keyword Args: diff --git a/generated/groundlight_openapi_client/model/channel_enum.py b/generated/groundlight_openapi_client/model/channel_enum.py index 89b933b9..18653b7a 100644 --- a/generated/groundlight_openapi_client/model/channel_enum.py +++ b/generated/groundlight_openapi_client/model/channel_enum.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -87,16 +86,14 @@ def discriminator(): _composed_schemas = None - required_properties = set( - [ - "_data_store", - "_check_type", - "_spec_property_naming", - "_path_to_item", - "_configuration", - "_visited_composed_classes", - ] - ) + required_properties = set([ + "_data_store", + "_check_type", + "_spec_property_naming", + "_path_to_item", + "_configuration", + "_visited_composed_classes", + ]) @convert_js_args_to_python_args def __init__(self, *args, **kwargs): diff --git a/generated/groundlight_openapi_client/model/condition.py b/generated/groundlight_openapi_client/model/condition.py index d9d0f1a5..abc74401 100644 --- a/generated/groundlight_openapi_client/model/condition.py +++ b/generated/groundlight_openapi_client/model/condition.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -196,16 +195,14 @@ def _from_openapi_data(cls, verb, parameters, *args, **kwargs): # noqa: E501 setattr(self, var_name, var_value) return self - required_properties = set( - [ - "_data_store", - "_check_type", - "_spec_property_naming", - "_path_to_item", - "_configuration", - "_visited_composed_classes", - ] - ) + required_properties = set([ + "_data_store", + "_check_type", + "_spec_property_naming", + "_path_to_item", + "_configuration", + "_visited_composed_classes", + ]) @convert_js_args_to_python_args def __init__(self, verb, parameters, *args, **kwargs): # noqa: E501 diff --git a/generated/groundlight_openapi_client/model/condition_request.py b/generated/groundlight_openapi_client/model/condition_request.py index ab1ae410..a629fe99 100644 --- a/generated/groundlight_openapi_client/model/condition_request.py +++ b/generated/groundlight_openapi_client/model/condition_request.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -196,16 +195,14 @@ def _from_openapi_data(cls, verb, parameters, *args, **kwargs): # noqa: E501 setattr(self, var_name, var_value) return self - required_properties = set( - [ - "_data_store", - "_check_type", - "_spec_property_naming", - "_path_to_item", - "_configuration", - "_visited_composed_classes", - ] - ) + required_properties = set([ + "_data_store", + "_check_type", + "_spec_property_naming", + "_path_to_item", + "_configuration", + "_visited_composed_classes", + ]) @convert_js_args_to_python_args def __init__(self, verb, parameters, *args, **kwargs): # noqa: E501 diff --git a/generated/groundlight_openapi_client/model/counting_result.py b/generated/groundlight_openapi_client/model/counting_result.py index 7df7e575..b9f0fb02 100644 --- a/generated/groundlight_openapi_client/model/counting_result.py +++ b/generated/groundlight_openapi_client/model/counting_result.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -56,7 +55,12 @@ class CountingResult(ModelNormal): allowed_values = {} - validations = {} + validations = { + ("confidence",): { + "inclusive_maximum": 1, + "inclusive_minimum": 0, + }, + } @cached_property def additional_properties_type(): @@ -89,7 +93,10 @@ def openapi_types(): and the value is attribute type. """ return { - "confidence": (float,), # noqa: E501 + "confidence": ( + float, + none_type, + ), # noqa: E501 "value": (int,), # noqa: E501 } @@ -112,7 +119,7 @@ def _from_openapi_data(cls, confidence, value, *args, **kwargs): # noqa: E501 """CountingResult - a model defined in OpenAPI Args: - confidence (float): + confidence (float, none_type): value (int): Keyword Args: @@ -188,23 +195,21 @@ def _from_openapi_data(cls, confidence, value, *args, **kwargs): # noqa: E501 setattr(self, var_name, var_value) return self - required_properties = set( - [ - "_data_store", - "_check_type", - "_spec_property_naming", - "_path_to_item", - "_configuration", - "_visited_composed_classes", - ] - ) + required_properties = set([ + "_data_store", + "_check_type", + "_spec_property_naming", + "_path_to_item", + "_configuration", + "_visited_composed_classes", + ]) @convert_js_args_to_python_args def __init__(self, confidence, value, *args, **kwargs): # noqa: E501 """CountingResult - a model defined in OpenAPI Args: - confidence (float): + confidence (float, none_type): value (int): Keyword Args: diff --git a/generated/groundlight_openapi_client/model/detector.py b/generated/groundlight_openapi_client/model/detector.py index 76fb9ecd..95248c0f 100644 --- a/generated/groundlight_openapi_client/model/detector.py +++ b/generated/groundlight_openapi_client/model/detector.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -70,6 +69,10 @@ class Detector(ModelNormal): "inclusive_maximum": 1.0, "inclusive_minimum": 0.0, }, + ("patience_time",): { + "inclusive_maximum": 3600, + "inclusive_minimum": 0, + }, } @cached_property @@ -131,6 +134,7 @@ def openapi_types(): none_type, ), # noqa: E501 "confidence_threshold": (float,), # noqa: E501 + "patience_time": (float,), # noqa: E501 } @cached_property @@ -148,6 +152,7 @@ def discriminator(): "mode": "mode", # noqa: E501 "mode_configuration": "mode_configuration", # noqa: E501 "confidence_threshold": "confidence_threshold", # noqa: E501 + "patience_time": "patience_time", # noqa: E501 } read_only_vars = { @@ -213,6 +218,7 @@ def _from_openapi_data( through its discriminator because we passed in _visited_composed_classes = (Animal,) confidence_threshold (float): If the detector's prediction is below this confidence threshold, send the image query for human review.. [optional] if omitted the server will use the default value of 0.9 # noqa: E501 + patience_time (float): How long Groundlight will attempt to generate a confident prediction. [optional] if omitted the server will use the default value of 30.0 # noqa: E501 """ _check_type = kwargs.pop("_check_type", True) @@ -262,16 +268,14 @@ def _from_openapi_data( setattr(self, var_name, var_value) return self - required_properties = set( - [ - "_data_store", - "_check_type", - "_spec_property_naming", - "_path_to_item", - "_configuration", - "_visited_composed_classes", - ] - ) + required_properties = set([ + "_data_store", + "_check_type", + "_spec_property_naming", + "_path_to_item", + "_configuration", + "_visited_composed_classes", + ]) @convert_js_args_to_python_args def __init__(self, name, *args, **kwargs): # noqa: E501 @@ -310,6 +314,7 @@ def __init__(self, name, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) confidence_threshold (float): If the detector's prediction is below this confidence threshold, send the image query for human review.. [optional] if omitted the server will use the default value of 0.9 # noqa: E501 + patience_time (float): How long Groundlight will attempt to generate a confident prediction. [optional] if omitted the server will use the default value of 30.0 # noqa: E501 """ _check_type = kwargs.pop("_check_type", True) diff --git a/generated/groundlight_openapi_client/model/detector_creation_input_request.py b/generated/groundlight_openapi_client/model/detector_creation_input_request.py index be4f690d..ae9681b1 100644 --- a/generated/groundlight_openapi_client/model/detector_creation_input_request.py +++ b/generated/groundlight_openapi_client/model/detector_creation_input_request.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -268,16 +267,14 @@ def _from_openapi_data(cls, name, query, *args, **kwargs): # noqa: E501 setattr(self, var_name, var_value) return self - required_properties = set( - [ - "_data_store", - "_check_type", - "_spec_property_naming", - "_path_to_item", - "_configuration", - "_visited_composed_classes", - ] - ) + required_properties = set([ + "_data_store", + "_check_type", + "_spec_property_naming", + "_path_to_item", + "_configuration", + "_visited_composed_classes", + ]) @convert_js_args_to_python_args def __init__(self, name, query, *args, **kwargs): # noqa: E501 diff --git a/generated/groundlight_openapi_client/model/detector_type_enum.py b/generated/groundlight_openapi_client/model/detector_type_enum.py index fe089546..e283920d 100644 --- a/generated/groundlight_openapi_client/model/detector_type_enum.py +++ b/generated/groundlight_openapi_client/model/detector_type_enum.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -86,16 +85,14 @@ def discriminator(): _composed_schemas = None - required_properties = set( - [ - "_data_store", - "_check_type", - "_spec_property_naming", - "_path_to_item", - "_configuration", - "_visited_composed_classes", - ] - ) + required_properties = set([ + "_data_store", + "_check_type", + "_spec_property_naming", + "_path_to_item", + "_configuration", + "_visited_composed_classes", + ]) @convert_js_args_to_python_args def __init__(self, *args, **kwargs): diff --git a/generated/groundlight_openapi_client/model/image_query.py b/generated/groundlight_openapi_client/model/image_query.py index b3f80efe..d16182e3 100644 --- a/generated/groundlight_openapi_client/model/image_query.py +++ b/generated/groundlight_openapi_client/model/image_query.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -283,16 +282,14 @@ def _from_openapi_data( setattr(self, var_name, var_value) return self - required_properties = set( - [ - "_data_store", - "_check_type", - "_spec_property_naming", - "_path_to_item", - "_configuration", - "_visited_composed_classes", - ] - ) + required_properties = set([ + "_data_store", + "_check_type", + "_spec_property_naming", + "_path_to_item", + "_configuration", + "_visited_composed_classes", + ]) @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 diff --git a/generated/groundlight_openapi_client/model/image_query_type_enum.py b/generated/groundlight_openapi_client/model/image_query_type_enum.py index 7e3344bc..8460fb1e 100644 --- a/generated/groundlight_openapi_client/model/image_query_type_enum.py +++ b/generated/groundlight_openapi_client/model/image_query_type_enum.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -86,16 +85,14 @@ def discriminator(): _composed_schemas = None - required_properties = set( - [ - "_data_store", - "_check_type", - "_spec_property_naming", - "_path_to_item", - "_configuration", - "_visited_composed_classes", - ] - ) + required_properties = set([ + "_data_store", + "_check_type", + "_spec_property_naming", + "_path_to_item", + "_configuration", + "_visited_composed_classes", + ]) @convert_js_args_to_python_args def __init__(self, *args, **kwargs): diff --git a/generated/groundlight_openapi_client/model/inline_response200.py b/generated/groundlight_openapi_client/model/inline_response200.py index 64090215..746eace5 100644 --- a/generated/groundlight_openapi_client/model/inline_response200.py +++ b/generated/groundlight_openapi_client/model/inline_response200.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -181,16 +180,14 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 setattr(self, var_name, var_value) return self - required_properties = set( - [ - "_data_store", - "_check_type", - "_spec_property_naming", - "_path_to_item", - "_configuration", - "_visited_composed_classes", - ] - ) + required_properties = set([ + "_data_store", + "_check_type", + "_spec_property_naming", + "_path_to_item", + "_configuration", + "_visited_composed_classes", + ]) @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 diff --git a/generated/groundlight_openapi_client/model/mode_enum.py b/generated/groundlight_openapi_client/model/mode_enum.py index e1920b27..2c5e8c97 100644 --- a/generated/groundlight_openapi_client/model/mode_enum.py +++ b/generated/groundlight_openapi_client/model/mode_enum.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -87,16 +86,14 @@ def discriminator(): _composed_schemas = None - required_properties = set( - [ - "_data_store", - "_check_type", - "_spec_property_naming", - "_path_to_item", - "_configuration", - "_visited_composed_classes", - ] - ) + required_properties = set([ + "_data_store", + "_check_type", + "_spec_property_naming", + "_path_to_item", + "_configuration", + "_visited_composed_classes", + ]) @convert_js_args_to_python_args def __init__(self, *args, **kwargs): diff --git a/generated/groundlight_openapi_client/model/note.py b/generated/groundlight_openapi_client/model/note.py index 713e4af8..01fee17b 100644 --- a/generated/groundlight_openapi_client/model/note.py +++ b/generated/groundlight_openapi_client/model/note.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -190,16 +189,14 @@ def _from_openapi_data(cls, detector_id, content, *args, **kwargs): # noqa: E50 setattr(self, var_name, var_value) return self - required_properties = set( - [ - "_data_store", - "_check_type", - "_spec_property_naming", - "_path_to_item", - "_configuration", - "_visited_composed_classes", - ] - ) + required_properties = set([ + "_data_store", + "_check_type", + "_spec_property_naming", + "_path_to_item", + "_configuration", + "_visited_composed_classes", + ]) @convert_js_args_to_python_args def __init__(self, content, *args, **kwargs): # noqa: E501 diff --git a/generated/groundlight_openapi_client/model/note_request.py b/generated/groundlight_openapi_client/model/note_request.py index b46e242e..bc4961a6 100644 --- a/generated/groundlight_openapi_client/model/note_request.py +++ b/generated/groundlight_openapi_client/model/note_request.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -188,16 +187,14 @@ def _from_openapi_data(cls, content, *args, **kwargs): # noqa: E501 setattr(self, var_name, var_value) return self - required_properties = set( - [ - "_data_store", - "_check_type", - "_spec_property_naming", - "_path_to_item", - "_configuration", - "_visited_composed_classes", - ] - ) + required_properties = set([ + "_data_store", + "_check_type", + "_spec_property_naming", + "_path_to_item", + "_configuration", + "_visited_composed_classes", + ]) @convert_js_args_to_python_args def __init__(self, content, *args, **kwargs): # noqa: E501 diff --git a/generated/groundlight_openapi_client/model/paginated_detector_list.py b/generated/groundlight_openapi_client/model/paginated_detector_list.py index c52532c4..0a93c835 100644 --- a/generated/groundlight_openapi_client/model/paginated_detector_list.py +++ b/generated/groundlight_openapi_client/model/paginated_detector_list.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -208,16 +207,14 @@ def _from_openapi_data(cls, count, results, *args, **kwargs): # noqa: E501 setattr(self, var_name, var_value) return self - required_properties = set( - [ - "_data_store", - "_check_type", - "_spec_property_naming", - "_path_to_item", - "_configuration", - "_visited_composed_classes", - ] - ) + required_properties = set([ + "_data_store", + "_check_type", + "_spec_property_naming", + "_path_to_item", + "_configuration", + "_visited_composed_classes", + ]) @convert_js_args_to_python_args def __init__(self, count, results, *args, **kwargs): # noqa: E501 diff --git a/generated/groundlight_openapi_client/model/paginated_image_query_list.py b/generated/groundlight_openapi_client/model/paginated_image_query_list.py index 06024eea..2436d033 100644 --- a/generated/groundlight_openapi_client/model/paginated_image_query_list.py +++ b/generated/groundlight_openapi_client/model/paginated_image_query_list.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -208,16 +207,14 @@ def _from_openapi_data(cls, count, results, *args, **kwargs): # noqa: E501 setattr(self, var_name, var_value) return self - required_properties = set( - [ - "_data_store", - "_check_type", - "_spec_property_naming", - "_path_to_item", - "_configuration", - "_visited_composed_classes", - ] - ) + required_properties = set([ + "_data_store", + "_check_type", + "_spec_property_naming", + "_path_to_item", + "_configuration", + "_visited_composed_classes", + ]) @convert_js_args_to_python_args def __init__(self, count, results, *args, **kwargs): # noqa: E501 diff --git a/generated/groundlight_openapi_client/model/paginated_rule_list.py b/generated/groundlight_openapi_client/model/paginated_rule_list.py index b8d12979..72a26a98 100644 --- a/generated/groundlight_openapi_client/model/paginated_rule_list.py +++ b/generated/groundlight_openapi_client/model/paginated_rule_list.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -208,16 +207,14 @@ def _from_openapi_data(cls, count, results, *args, **kwargs): # noqa: E501 setattr(self, var_name, var_value) return self - required_properties = set( - [ - "_data_store", - "_check_type", - "_spec_property_naming", - "_path_to_item", - "_configuration", - "_visited_composed_classes", - ] - ) + required_properties = set([ + "_data_store", + "_check_type", + "_spec_property_naming", + "_path_to_item", + "_configuration", + "_visited_composed_classes", + ]) @convert_js_args_to_python_args def __init__(self, count, results, *args, **kwargs): # noqa: E501 diff --git a/generated/groundlight_openapi_client/model/result_type_enum.py b/generated/groundlight_openapi_client/model/result_type_enum.py index 11a456e4..ea4702e4 100644 --- a/generated/groundlight_openapi_client/model/result_type_enum.py +++ b/generated/groundlight_openapi_client/model/result_type_enum.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -87,16 +86,14 @@ def discriminator(): _composed_schemas = None - required_properties = set( - [ - "_data_store", - "_check_type", - "_spec_property_naming", - "_path_to_item", - "_configuration", - "_visited_composed_classes", - ] - ) + required_properties = set([ + "_data_store", + "_check_type", + "_spec_property_naming", + "_path_to_item", + "_configuration", + "_visited_composed_classes", + ]) @convert_js_args_to_python_args def __init__(self, *args, **kwargs): diff --git a/generated/groundlight_openapi_client/model/rule.py b/generated/groundlight_openapi_client/model/rule.py index 55d2fd3f..0f7e8e0e 100644 --- a/generated/groundlight_openapi_client/model/rule.py +++ b/generated/groundlight_openapi_client/model/rule.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -252,16 +251,14 @@ def _from_openapi_data(cls, id, detector_id, detector_name, name, condition, act setattr(self, var_name, var_value) return self - required_properties = set( - [ - "_data_store", - "_check_type", - "_spec_property_naming", - "_path_to_item", - "_configuration", - "_visited_composed_classes", - ] - ) + required_properties = set([ + "_data_store", + "_check_type", + "_spec_property_naming", + "_path_to_item", + "_configuration", + "_visited_composed_classes", + ]) @convert_js_args_to_python_args def __init__(self, name, condition, action, *args, **kwargs): # noqa: E501 diff --git a/generated/groundlight_openapi_client/model/rule_request.py b/generated/groundlight_openapi_client/model/rule_request.py index 034182e3..c502f8f2 100644 --- a/generated/groundlight_openapi_client/model/rule_request.py +++ b/generated/groundlight_openapi_client/model/rule_request.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -237,16 +236,14 @@ def _from_openapi_data(cls, name, condition, action, *args, **kwargs): # noqa: setattr(self, var_name, var_value) return self - required_properties = set( - [ - "_data_store", - "_check_type", - "_spec_property_naming", - "_path_to_item", - "_configuration", - "_visited_composed_classes", - ] - ) + required_properties = set([ + "_data_store", + "_check_type", + "_spec_property_naming", + "_path_to_item", + "_configuration", + "_visited_composed_classes", + ]) @convert_js_args_to_python_args def __init__(self, name, condition, action, *args, **kwargs): # noqa: E501 diff --git a/generated/groundlight_openapi_client/model/snooze_time_unit_enum.py b/generated/groundlight_openapi_client/model/snooze_time_unit_enum.py index 0d4156a8..30428c63 100644 --- a/generated/groundlight_openapi_client/model/snooze_time_unit_enum.py +++ b/generated/groundlight_openapi_client/model/snooze_time_unit_enum.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -89,16 +88,14 @@ def discriminator(): _composed_schemas = None - required_properties = set( - [ - "_data_store", - "_check_type", - "_spec_property_naming", - "_path_to_item", - "_configuration", - "_visited_composed_classes", - ] - ) + required_properties = set([ + "_data_store", + "_check_type", + "_spec_property_naming", + "_path_to_item", + "_configuration", + "_visited_composed_classes", + ]) @convert_js_args_to_python_args def __init__(self, *args, **kwargs): diff --git a/generated/groundlight_openapi_client/model/verb_enum.py b/generated/groundlight_openapi_client/model/verb_enum.py index 792781f2..b2248ca5 100644 --- a/generated/groundlight_openapi_client/model/verb_enum.py +++ b/generated/groundlight_openapi_client/model/verb_enum.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -90,16 +89,14 @@ def discriminator(): _composed_schemas = None - required_properties = set( - [ - "_data_store", - "_check_type", - "_spec_property_naming", - "_path_to_item", - "_configuration", - "_visited_composed_classes", - ] - ) + required_properties = set([ + "_data_store", + "_check_type", + "_spec_property_naming", + "_path_to_item", + "_configuration", + "_visited_composed_classes", + ]) @convert_js_args_to_python_args def __init__(self, *args, **kwargs): diff --git a/generated/groundlight_openapi_client/model_utils.py b/generated/groundlight_openapi_client/model_utils.py index b9176a65..d96edfcc 100644 --- a/generated/groundlight_openapi_client/model_utils.py +++ b/generated/groundlight_openapi_client/model_utils.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - from datetime import date, datetime # noqa: F401 from copy import deepcopy import inspect @@ -1686,6 +1685,7 @@ def get_allof_instances(self, model_args, constant_args): """ composed_instances = [] for allof_class in self._composed_schemas["allOf"]: + try: if constant_args.get("_spec_property_naming"): allof_instance = allof_class._from_openapi_data(**model_args, **constant_args) diff --git a/generated/groundlight_openapi_client/rest.py b/generated/groundlight_openapi_client/rest.py index 57fbacaf..7ffe9b28 100644 --- a/generated/groundlight_openapi_client/rest.py +++ b/generated/groundlight_openapi_client/rest.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import io import json import logging diff --git a/generated/model.py b/generated/model.py index b0858ce7..d6399179 100644 --- a/generated/model.py +++ b/generated/model.py @@ -1,6 +1,6 @@ # generated by datamodel-codegen: # filename: public-api.yaml -# timestamp: 2024-06-03T17:05:22+00:00 +# timestamp: 2024-07-11T21:46:48+00:00 from __future__ import annotations @@ -59,12 +59,12 @@ class VerbEnum(Enum): class BinaryClassificationResult(BaseModel): - confidence: Any + confidence: Optional[confloat(ge=0.0, le=1.0)] = Field(...) label: str class CountingResult(BaseModel): - confidence: Any + confidence: Optional[confloat(ge=0.0, le=1.0)] = Field(...) value: int @@ -108,6 +108,9 @@ class Detector(BaseModel): "If the detector's prediction is below this confidence threshold, send the image query for human review." ), ) + patience_time: confloat(ge=0.0, le=3600.0) = Field( + 30.0, description="How long Groundlight will attempt to generate a confident prediction" + ) metadata: Optional[Dict[str, Any]] = Field(..., description="Metadata about the detector.") mode: str mode_configuration: Optional[Dict[str, Any]] = Field(...) diff --git a/generated/setup.py b/generated/setup.py index f755be99..3e2017e3 100644 --- a/generated/setup.py +++ b/generated/setup.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - from setuptools import setup, find_packages # noqa: H301 NAME = "groundlight-openapi-client" diff --git a/generated/test/test_action.py b/generated/test/test_action.py index d8750a94..05e47837 100644 --- a/generated/test/test_action.py +++ b/generated/test/test_action.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/generated/test/test_action_request.py b/generated/test/test_action_request.py index 423c03d4..2b9c8cd3 100644 --- a/generated/test/test_action_request.py +++ b/generated/test/test_action_request.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/generated/test/test_actions_api.py b/generated/test/test_actions_api.py index cca4d4d5..3a75cfa9 100644 --- a/generated/test/test_actions_api.py +++ b/generated/test/test_actions_api.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import unittest import groundlight_openapi_client diff --git a/generated/test/test_all_notes.py b/generated/test/test_all_notes.py index 6e833506..04c3e0be 100644 --- a/generated/test/test_all_notes.py +++ b/generated/test/test_all_notes.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/generated/test/test_binary_classification_result.py b/generated/test/test_binary_classification_result.py index 8317f0e3..51db88fb 100644 --- a/generated/test/test_binary_classification_result.py +++ b/generated/test/test_binary_classification_result.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/generated/test/test_channel_enum.py b/generated/test/test_channel_enum.py index 39c15823..1d293ddd 100644 --- a/generated/test/test_channel_enum.py +++ b/generated/test/test_channel_enum.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/generated/test/test_classification_result.py b/generated/test/test_classification_result.py index ccedb7bf..a95afa37 100644 --- a/generated/test/test_classification_result.py +++ b/generated/test/test_classification_result.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/generated/test/test_condition.py b/generated/test/test_condition.py index 31591291..f7830b38 100644 --- a/generated/test/test_condition.py +++ b/generated/test/test_condition.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/generated/test/test_condition_request.py b/generated/test/test_condition_request.py index 954d9ce9..08232ef7 100644 --- a/generated/test/test_condition_request.py +++ b/generated/test/test_condition_request.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/generated/test/test_counting_result.py b/generated/test/test_counting_result.py index 67697c8a..1380f868 100644 --- a/generated/test/test_counting_result.py +++ b/generated/test/test_counting_result.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/generated/test/test_detector.py b/generated/test/test_detector.py index c85df7b6..56ad9079 100644 --- a/generated/test/test_detector.py +++ b/generated/test/test_detector.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/generated/test/test_detector_creation_input.py b/generated/test/test_detector_creation_input.py index 4f32350c..63c2afb2 100644 --- a/generated/test/test_detector_creation_input.py +++ b/generated/test/test_detector_creation_input.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/generated/test/test_detector_creation_input_request.py b/generated/test/test_detector_creation_input_request.py index 8d86a489..340f4507 100644 --- a/generated/test/test_detector_creation_input_request.py +++ b/generated/test/test_detector_creation_input_request.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/generated/test/test_detector_type_enum.py b/generated/test/test_detector_type_enum.py index 007306e8..b4fe6029 100644 --- a/generated/test/test_detector_type_enum.py +++ b/generated/test/test_detector_type_enum.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/generated/test/test_detectors_api.py b/generated/test/test_detectors_api.py index 7f0fb5e3..422e6a75 100644 --- a/generated/test/test_detectors_api.py +++ b/generated/test/test_detectors_api.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import unittest import groundlight_openapi_client diff --git a/generated/test/test_image_queries_api.py b/generated/test/test_image_queries_api.py index 762cf4d0..01ae7442 100644 --- a/generated/test/test_image_queries_api.py +++ b/generated/test/test_image_queries_api.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import unittest import groundlight_openapi_client diff --git a/generated/test/test_image_query.py b/generated/test/test_image_query.py index 87832913..eed34123 100644 --- a/generated/test/test_image_query.py +++ b/generated/test/test_image_query.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/generated/test/test_image_query_type_enum.py b/generated/test/test_image_query_type_enum.py index 41722b35..2484c245 100644 --- a/generated/test/test_image_query_type_enum.py +++ b/generated/test/test_image_query_type_enum.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/generated/test/test_images_api.py b/generated/test/test_images_api.py index 4185ec7f..ef7f4e18 100644 --- a/generated/test/test_images_api.py +++ b/generated/test/test_images_api.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import unittest import groundlight_openapi_client diff --git a/generated/test/test_inline_response200.py b/generated/test/test_inline_response200.py index ebc03cfa..1b31c00d 100644 --- a/generated/test/test_inline_response200.py +++ b/generated/test/test_inline_response200.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/generated/test/test_mode_enum.py b/generated/test/test_mode_enum.py index 4836bf55..1227ab00 100644 --- a/generated/test/test_mode_enum.py +++ b/generated/test/test_mode_enum.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/generated/test/test_note.py b/generated/test/test_note.py index b8e2fe99..e96516d0 100644 --- a/generated/test/test_note.py +++ b/generated/test/test_note.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/generated/test/test_note_creation_input.py b/generated/test/test_note_creation_input.py index 641ac12d..79f5c4c4 100644 --- a/generated/test/test_note_creation_input.py +++ b/generated/test/test_note_creation_input.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/generated/test/test_note_request.py b/generated/test/test_note_request.py index c2043f12..86ed4605 100644 --- a/generated/test/test_note_request.py +++ b/generated/test/test_note_request.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/generated/test/test_notes_api.py b/generated/test/test_notes_api.py index b6a27551..71b527ae 100644 --- a/generated/test/test_notes_api.py +++ b/generated/test/test_notes_api.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import unittest import groundlight_openapi_client diff --git a/generated/test/test_paginated_all_notes_list.py b/generated/test/test_paginated_all_notes_list.py index 93770ca4..e35ee324 100644 --- a/generated/test/test_paginated_all_notes_list.py +++ b/generated/test/test_paginated_all_notes_list.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/generated/test/test_paginated_detector_list.py b/generated/test/test_paginated_detector_list.py index 49ff7025..496730dd 100644 --- a/generated/test/test_paginated_detector_list.py +++ b/generated/test/test_paginated_detector_list.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/generated/test/test_paginated_image_query_list.py b/generated/test/test_paginated_image_query_list.py index a1303760..5488a2ec 100644 --- a/generated/test/test_paginated_image_query_list.py +++ b/generated/test/test_paginated_image_query_list.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/generated/test/test_paginated_note_list.py b/generated/test/test_paginated_note_list.py index 9cbcd779..9c66490f 100644 --- a/generated/test/test_paginated_note_list.py +++ b/generated/test/test_paginated_note_list.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/generated/test/test_paginated_rule_list.py b/generated/test/test_paginated_rule_list.py index 7681cd3c..f03d3751 100644 --- a/generated/test/test_paginated_rule_list.py +++ b/generated/test/test_paginated_rule_list.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/generated/test/test_result_type_enum.py b/generated/test/test_result_type_enum.py index 5ae61ea9..aaaefe90 100644 --- a/generated/test/test_result_type_enum.py +++ b/generated/test/test_result_type_enum.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/generated/test/test_rule.py b/generated/test/test_rule.py index bfd2af6b..3714818f 100644 --- a/generated/test/test_rule.py +++ b/generated/test/test_rule.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/generated/test/test_rule_base.py b/generated/test/test_rule_base.py index b71d9cf6..8c53a1ac 100644 --- a/generated/test/test_rule_base.py +++ b/generated/test/test_rule_base.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/generated/test/test_rule_creation_input.py b/generated/test/test_rule_creation_input.py index bc399ffd..4684d6c0 100644 --- a/generated/test/test_rule_creation_input.py +++ b/generated/test/test_rule_creation_input.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/generated/test/test_rule_request.py b/generated/test/test_rule_request.py index 68db4be6..a3d1c5bf 100644 --- a/generated/test/test_rule_request.py +++ b/generated/test/test_rule_request.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/generated/test/test_rules_api.py b/generated/test/test_rules_api.py index 2049ca60..36539521 100644 --- a/generated/test/test_rules_api.py +++ b/generated/test/test_rules_api.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import unittest import groundlight_openapi_client diff --git a/generated/test/test_snooze_time_unit_enum.py b/generated/test/test_snooze_time_unit_enum.py index 973196d1..7169f695 100644 --- a/generated/test/test_snooze_time_unit_enum.py +++ b/generated/test/test_snooze_time_unit_enum.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/generated/test/test_user.py b/generated/test/test_user.py index c50c69d9..c6e7f5f3 100644 --- a/generated/test/test_user.py +++ b/generated/test/test_user.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/generated/test/test_user_api.py b/generated/test/test_user_api.py index 6b3341bf..eb698f08 100644 --- a/generated/test/test_user_api.py +++ b/generated/test/test_user_api.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import unittest import groundlight_openapi_client diff --git a/generated/test/test_verb_enum.py b/generated/test/test_verb_enum.py index ba2dc259..a9a5e79f 100644 --- a/generated/test/test_verb_enum.py +++ b/generated/test/test_verb_enum.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/spec/public-api.yaml b/spec/public-api.yaml index b1065951..04824a76 100644 --- a/spec/public-api.yaml +++ b/spec/public-api.yaml @@ -538,6 +538,13 @@ components: default: 0.9 description: If the detector's prediction is below this confidence threshold, send the image query for human review. + patience_time: + type: number + format: double + maximum: 3600 + minimum: 0 + default: 30.0 + description: How long Groundlight will attempt to generate a confident prediction metadata: type: object additionalProperties: {} @@ -909,7 +916,11 @@ components: type: object properties: confidence: - type: float + type: number + format: float + minimum: 0 + maximum: 1 + nullable: true label: type: string required: @@ -919,7 +930,11 @@ components: type: object properties: confidence: - type: float + type: number + format: float + minimum: 0 + maximum: 1 + nullable: true value: type: integer required: