Skip to content
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

[text analytics] remove duplicate platform info in user agent #12123

Merged
merged 4 commits into from
Jun 22, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@
import platform
from ._version import VERSION

USER_AGENT = "ai-textanalytics/{} Python/{} ({})".format(
VERSION, platform.python_version(), platform.platform()
)
USER_AGENT = "ai-textanalytics/{}".format(VERSION)
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ interactions:
Content-Type:
- application/json
User-Agent:
- azsdk-python-ai-textanalytics/1.0.0b6 Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
- azsdk-python-ai-textanalytics/1.0.1 Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
method: POST
uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/sentiment?showStats=true
response:
Expand All @@ -31,21 +30,21 @@ interactions:
recommend you try it."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
apim-request-id:
- ee7dfa62-6db4-458c-9402-a924260a3424
- 06e7a065-3f22-4c07-a34d-fe9df28bf145
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- Wed, 27 May 2020 16:04:02 GMT
- Thu, 18 Jun 2020 19:52:32 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
- chunked
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- '77'
- '83'
status:
code: 200
message: OK
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ interactions:
Content-Type:
- application/json
User-Agent:
- azsdk-python-ai-textanalytics/1.0.0b6 Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
- azsdk-python-ai-textanalytics/1.0.1 Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
method: POST
uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/sentiment?showStats=false
response:
Expand All @@ -31,21 +30,21 @@ interactions:
recommend you try it."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
apim-request-id:
- 829ad6e0-1c65-4dbe-95e4-2ea55bfd0a7f
- 588a761e-eb90-4099-921a-79ba72a639e7
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- Wed, 27 May 2020 16:04:02 GMT
- Thu, 18 Jun 2020 19:52:33 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
- chunked
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- '103'
- '82'
status:
code: 200
message: OK
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ interactions:
Content-Type:
- application/json
User-Agent:
- azsdk-python-ai-textanalytics/1.0.0b6 Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
- azsdk-python-ai-textanalytics/1.0.1 Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
method: POST
uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/sentiment?showStats=false
response:
Expand All @@ -27,7 +26,7 @@ interactions:
content-length:
- '224'
date:
- Wed, 27 May 2020 16:04:01 GMT
- Thu, 18 Jun 2020 19:52:33 GMT
status:
code: 401
message: PermissionDenied
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ interactions:
Content-Type:
- application/json
User-Agent:
- azsdk-python-ai-textanalytics/1.0.0b6 Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
- azsdk-python-ai-textanalytics/1.0.1 Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
method: POST
uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/sentiment?model-version=bad&showStats=false
response:
Expand All @@ -24,19 +23,19 @@ interactions:
model version. Possible values are: latest,2019-10-01,2020-04-01"}}}'
headers:
apim-request-id:
- 80c5f909-4975-4725-a87b-6de201a7f701
- 20895e3e-f7cd-4cbb-a200-6384531a6aad
content-type:
- application/json; charset=utf-8
date:
- Wed, 27 May 2020 16:04:01 GMT
- Thu, 18 Jun 2020 19:52:33 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
- chunked
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- '5'
- '6'
status:
code: 400
message: Bad Request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -758,8 +758,7 @@ interactions:
Content-Type:
- application/json
User-Agent:
- azsdk-python-ai-textanalytics/1.0.0b6 Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
- azsdk-python-ai-textanalytics/1.0.1 Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
method: POST
uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/sentiment?showStats=false
response:
Expand All @@ -768,19 +767,19 @@ interactions:
request contains too many records. Max 1000 records are permitted."}}}'
headers:
apim-request-id:
- 3c8df611-834f-4fdb-b8e8-2429e2d30e26
- b9e3966b-355a-4feb-a21a-74793021f522
content-type:
- application/json; charset=utf-8
date:
- Wed, 27 May 2020 16:04:02 GMT
- Thu, 18 Jun 2020 19:52:33 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
- chunked
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- '13'
- '14'
status:
code: 400
message: Bad Request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -723,8 +723,7 @@ interactions:
Content-Type:
- application/json
User-Agent:
- azsdk-python-ai-textanalytics/1.0.0b6 Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
- azsdk-python-ai-textanalytics/1.0.1 Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
method: POST
uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/sentiment?showStats=false
response:
Expand All @@ -733,19 +732,19 @@ interactions:
request contains too many records. Max 1000 records are permitted."}}}'
headers:
apim-request-id:
- fea64d87-821c-4f65-8c01-2439fbef4a89
- 8f9e2336-979c-4d5d-a2cc-a7cce506e4e8
content-type:
- application/json; charset=utf-8
date:
- Wed, 27 May 2020 16:04:02 GMT
- Thu, 18 Jun 2020 19:52:33 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
- chunked
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- '12'
- '13'
status:
code: 400
message: Bad Request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ interactions:
Content-Type:
- application/json
User-Agent:
- azsdk-python-ai-textanalytics/1.0.0b6 Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
- azsdk-python-ai-textanalytics/1.0.1 Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
method: POST
uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/sentiment?showStats=false
response:
Expand All @@ -28,21 +27,21 @@ interactions:
restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
apim-request-id:
- 29a54d72-954e-4405-93fd-8c503159d42c
- 31654ab2-9d20-44d7-8a32-27bed4d42ee7
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- Wed, 27 May 2020 16:04:02 GMT
- Thu, 18 Jun 2020 19:52:33 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
- chunked
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- '376'
- '108'
status:
code: 200
message: OK
Expand All @@ -63,8 +62,7 @@ interactions:
Content-Type:
- application/json
User-Agent:
- azsdk-python-ai-textanalytics/1.0.0b6 Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
- azsdk-python-ai-textanalytics/1.0.1 Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
method: POST
uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/sentiment?showStats=false
response:
Expand All @@ -75,21 +73,21 @@ interactions:
restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
apim-request-id:
- ad3384c2-89d8-4dc2-b634-519a8a687898
- 69099214-9e2b-4e78-ad55-75422bce9fa2
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- Wed, 27 May 2020 16:04:02 GMT
- Thu, 18 Jun 2020 19:52:33 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
- chunked
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- '103'
- '88'
status:
code: 200
message: OK
Expand All @@ -110,8 +108,7 @@ interactions:
Content-Type:
- application/json
User-Agent:
- azsdk-python-ai-textanalytics/1.0.0b6 Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
- azsdk-python-ai-textanalytics/1.0.1 Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
method: POST
uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/sentiment?showStats=false
response:
Expand All @@ -122,21 +119,21 @@ interactions:
restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
apim-request-id:
- 896f3fe4-b6d1-4918-aad2-0f35ad243bab
- 100b38e5-f6d9-430c-97f5-347d77c72be5
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- Wed, 27 May 2020 16:04:02 GMT
- Thu, 18 Jun 2020 19:52:33 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
- chunked
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- '121'
- '114'
status:
code: 200
message: OK
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ interactions:
Content-Type:
- application/json
User-Agent:
- azsdk-python-ai-textanalytics/1.0.0b6 Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
- azsdk-python-ai-textanalytics/1.0.1 Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
method: POST
uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/sentiment?showStats=false
response:
Expand All @@ -24,11 +23,11 @@ interactions:
text is empty."}}}],"modelVersion":"2020-04-01"}'
headers:
apim-request-id:
- 544887f7-4d24-4d86-b6a4-e7f41f6f3d6e
- 6a7b6796-dcf1-4521-b4c7-d025565fbe63
content-type:
- application/json; charset=utf-8
date:
- Wed, 27 May 2020 16:04:01 GMT
- Thu, 18 Jun 2020 19:52:33 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ interactions:
Content-Type:
- application/json
User-Agent:
- azsdk-python-ai-textanalytics/1.0.0b6 Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
- azsdk-python-ai-textanalytics/1.0.1 Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
method: POST
uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/sentiment?showStats=false
response:
Expand All @@ -24,11 +23,11 @@ interactions:
text is empty."}}}],"modelVersion":"2020-04-01"}'
headers:
apim-request-id:
- 246d0b22-af88-4dce-8bff-6e777f99466e
- ac88c327-e418-4e3c-9a7f-550ed485c1f1
content-type:
- application/json; charset=utf-8
date:
- Wed, 27 May 2020 16:04:01 GMT
- Thu, 18 Jun 2020 19:52:35 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ interactions:
Content-Type:
- application/json
User-Agent:
- azsdk-python-ai-textanalytics/1.0.0b6 Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
- azsdk-python-ai-textanalytics/1.0.1 Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
method: POST
uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/sentiment?showStats=false
response:
Expand All @@ -33,19 +32,19 @@ interactions:
see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2020-04-01"}'
headers:
apim-request-id:
- 3d07acb9-0c71-4de4-8576-89628400efb5
- 5f204711-42a5-4c7e-8395-85bb08a3446b
content-type:
- application/json; charset=utf-8
date:
- Wed, 27 May 2020 16:04:03 GMT
- Thu, 18 Jun 2020 19:52:37 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
- chunked
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- '3'
- '2'
status:
code: 200
message: OK
Expand Down
Loading