【问题标题】:Getting error while using LUIS recognizer使用 LUIS 识别器时出错
【发布时间】:2020-10-31 18:29:51
【问题描述】:

每当我尝试使用以下代码获得响应时,我都会收到异常“响应状态代码不表示成功:404(未找到)。”。请帮帮我。

var luisApp = new LuisApplication(configuration["LuisAppId"], configuration["LuisAPIKey"], configuration["LuisAPIHostName"]);
var 识别器结果 = 等待识别器.RecognizeAsync(turnContext, cancelToken);

【问题讨论】:

  • 您是否在配置中提供了所有这三个属性的值?
  • 宇通的回答可以接受吗?
  • 你是怎么解决的?

标签: bots azure-language-understanding


【解决方案1】:

如果您在谈论 LUIS 识别器类,我强烈建议您根据文档检查属性和其他任何内容:

属性 应用程序ID
来自 LUIS 的模型应用程序 ID

端点
(可选)LUIS 端点,默认为https://westus.api.cognitive.microsoft.com

endpointKey 用于与 LUIS 对话的端点密钥

https://docs.microsoft.com/en-us/javascript/api/botbuilder-ai/luisapplication?view=botbuilder-ts-latest

【讨论】:

    【解决方案2】:

    我忘记应用的一件事(在开发解决方案时)是 LUIS 应用程序也必须部署到 生产槽。如果这没有发生,您也会得到 404。只是想分享一下,以防其他人需要。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-03-22
      相关资源
      最近更新 更多