本文介绍了在哪里可以找到azure订阅的LUIS服务的订阅密钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


 我已经从luis.ai注册了LUIS试用服务,创建了示例应用程序并能够使用REST API进行设置和访问。效果很好。试用版限制为100K /月。我想在Azure上购买此服务。所以我注册了azure和
创建的Cognitive-Service-> LUIS。  为了在REST API中使用购买LUIS服务,我需要applicationId和订阅密钥。我可以看到"订阅ID"和密钥(2个密钥) 在天蓝色的门户网站。  我尝试过使用"subscription
ID"作为applicationId和其中一个键作为订阅键。但它不起作用。


这是我尝试过的网址,


GET https://api.projectoxford.ai/luis/ v1 / application?id = {applicatinId}& subscription-key = {subscriptionKey}& q = {my query}


适用于试用版,但不确定azure购买的LUIS服务。我得到以下错误


{" statusCode " ;:
401
"
消息 " ;:
"由于订阅密钥无效而拒绝访问。确保为
有效订阅提供有效密钥。"
}


任何帮助调用Azure托管的LUIS服务都非常有帮助。我正在评估LUIS在我们的产品。

解决方案

Hi,

  I have signed up for LUIS trial service from luis.ai, created sample app and able to setup and access using REST APIs. Works great. Trial version has limitation of 100K/month. I would like to buy this service on Azure. So I signed up on azure and created Cognitive-Service-> LUIS.  In order to use purchase LUIS service in REST API, I need applicationId and subscription Key. I can see "subscription ID" and keys (2 keys) in azure portal.  I have tried using "subscription ID" as applicationId and one of the keys as subscription key. But it doesn't work.

Here is the URL I have tried,

GET https://api.projectoxford.ai/luis/v1/application?id={applicatinId}&subscription-key={subscriptionKey}&q={my query}

Works great with trial application, but not sure azure purchased LUIS service. I get below error

{ "statusCode":401, "message":"Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." }

Any help to get call Azure hosted LUIS service through REST will be really helpful. I'm evaluating LUIS to use in our product.

解决方案


这篇关于在哪里可以找到azure订阅的LUIS服务的订阅密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-15 18:12