diff --git a/sdk/cognitiveservices/azure-cognitiveservices-vision-computervision/azure/cognitiveservices/vision/computervision/_computer_vision_client.py b/sdk/cognitiveservices/azure-cognitiveservices-vision-computervision/azure/cognitiveservices/vision/computervision/_computer_vision_client.py index e2d380c69638..854e54fa8995 100644 --- a/sdk/cognitiveservices/azure-cognitiveservices-vision-computervision/azure/cognitiveservices/vision/computervision/_computer_vision_client.py +++ b/sdk/cognitiveservices/azure-cognitiveservices-vision-computervision/azure/cognitiveservices/vision/computervision/_computer_vision_client.py @@ -38,7 +38,7 @@ def __init__( super(ComputerVisionClient, self).__init__(self.config.credentials, self.config) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = '3.0' + self.api_version = '3.1' self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) diff --git a/sdk/cognitiveservices/azure-cognitiveservices-vision-computervision/azure/cognitiveservices/vision/computervision/_configuration.py b/sdk/cognitiveservices/azure-cognitiveservices-vision-computervision/azure/cognitiveservices/vision/computervision/_configuration.py index 7a5c5c553bc9..e0055f84b981 100644 --- a/sdk/cognitiveservices/azure-cognitiveservices-vision-computervision/azure/cognitiveservices/vision/computervision/_configuration.py +++ b/sdk/cognitiveservices/azure-cognitiveservices-vision-computervision/azure/cognitiveservices/vision/computervision/_configuration.py @@ -33,7 +33,7 @@ def __init__( raise ValueError("Parameter 'endpoint' must not be None.") if credentials is None: raise ValueError("Parameter 'credentials' must not be None.") - base_url = '{Endpoint}/vision/v3.0' + base_url = '{Endpoint}/vision/v3.1' super(ComputerVisionClientConfiguration, self).__init__(base_url) diff --git a/sdk/cognitiveservices/azure-cognitiveservices-vision-computervision/azure/cognitiveservices/vision/computervision/operations/_computer_vision_client_operations.py b/sdk/cognitiveservices/azure-cognitiveservices-vision-computervision/azure/cognitiveservices/vision/computervision/operations/_computer_vision_client_operations.py index a2417588988b..86ff3c0a28df 100644 --- a/sdk/cognitiveservices/azure-cognitiveservices-vision-computervision/azure/cognitiveservices/vision/computervision/operations/_computer_vision_client_operations.py +++ b/sdk/cognitiveservices/azure-cognitiveservices-vision-computervision/azure/cognitiveservices/vision/computervision/operations/_computer_vision_client_operations.py @@ -726,14 +726,14 @@ def read( :param url: Publicly reachable URL of an image. :type url: str - :param language: The BCP-47 language code of the text to be detected - in the image. In future versions, when language parameter is not - passed, language detection will be used to determine the language. - However, in the current version, missing language parameter will cause - English to be used. To ensure that your document is always parsed in - English without the use of language detection in the future, pass “en” - in the language parameter. Possible values include: 'en', 'es', 'fr', - 'de', 'it', 'nl', 'pt' + :param language: The BCP-47 language code of the text in the document. + Currently, only English ('en'), Dutch (‘nl’), French (‘fr’), German + (‘de’), Italian (‘it’), Portuguese (‘pt), and Spanish ('es') are + supported. Read supports auto language identification and + multi-language documents, so only provide a language code if you would + like to force the documented to be processed as that specific + language. Possible values include: 'en', 'es', 'fr', 'de', 'it', 'nl', + 'pt' :type language: str or ~azure.cognitiveservices.vision.computervision.models.OcrDetectionLanguage :param dict custom_headers: headers that will be added to the request @@ -1513,14 +1513,14 @@ def read_in_stream( :param image: An image stream. :type image: Generator - :param language: The BCP-47 language code of the text to be detected - in the image. In future versions, when language parameter is not - passed, language detection will be used to determine the language. - However, in the current version, missing language parameter will cause - English to be used. To ensure that your document is always parsed in - English without the use of language detection in the future, pass “en” - in the language parameter. Possible values include: 'en', 'es', 'fr', - 'de', 'it', 'nl', 'pt' + :param language: The BCP-47 language code of the text in the document. + Currently, only English ('en'), Dutch (‘nl’), French (‘fr’), German + (‘de’), Italian (‘it’), Portuguese (‘pt), and Spanish ('es') are + supported. Read supports auto language identification and + multi-language documents, so only provide a language code if you would + like to force the documented to be processed as that specific + language. Possible values include: 'en', 'es', 'fr', 'de', 'it', 'nl', + 'pt' :type language: str or ~azure.cognitiveservices.vision.computervision.models.OcrDetectionLanguage :param dict custom_headers: headers that will be added to the request