所以我在Azure上做了自定义多标签模型,并进行了部署。现在我一直在尝试按照的说明进行请求。要提交的cURL与202配合良好,但要检索它的cURL返回:{"error":{"code":"404","message": "Resource not found"}}
。这是没有一些私有信息的请求:提交:
curl -X POST "<endpoint>/language/analyze-text/jobs?api-version=<version>" -H "Ocp-Apim-Subscription-Key: key" -H "Content-Type: application/json" -d "{\"tasks\":[{\"kind\":\"CustomMultiLabelClassification\",\"parameters\":{\"projectName\":\"prjName\",\"deploymentName\":\"model\"}}],\"displayName\":\"CustomTextPortal_CustomMultiLabelClassification\",\"analysisInput\":{\"documents\":[{\"id\":\"document_CustomMultiLabelClassification\",\"text\":\"Hello world!\",\"language\":\"en\"}]}}"
检索:
curl <endpoint>/language/analyze-text/jobs?api-version=<version> -H "Ocp-Apim-Subscription-Key: key"
它是被窃听了还是不工作了还是我做错了什么?
1条答案
按热度按时间lf5gs5x21#
URL中缺少-X GET方法和作业ID。正确的格式应为: