有关使用Botframework v4更改为新LUIS密钥的问题 [英] Question about changing to a new LUIS key with Botframework v4

查看:76
本文介绍了有关使用Botframework v4更改为新LUIS密钥的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Azure中下载了C#模板.它会自动创建并设置一个LUIS应用程序,但现在LUIS可以打1000个电话,并且现在到期.我使用本指南.我设法分配了资源,但是现在呢?我仍然收到错误消息,表明已达到配额限制.

I downloaded the C# template in Azure. It automatically created and setup a LUIS app but now LUIS hits 1000 calls and expires now. I created a new key using this guide. I managed to assign a resource but now what? I'm still getting an error that the quota limit was reached.

我尝试更改bot文件中的名称和创作密钥,但总是收到无法读取bot文件的错误.

I tried changing the name and authoring key in the bot file but always getting error that I can't read bot file.

我还注意到,LUIS应用程序中的创作密钥比机器人配置中的创作密钥短得多.有人能帮我吗?谢谢.

I also notice that the authoring key in LUIS app is much shorter that in the bot config. Can someone help me? Thank you.

更新:我尝试了这些.

UPDATE: I tries these.

  1. 在Azure门户中以S0定价创建了新的luis订阅计划.

  1. Created new luis subscription plan in azure portal with S0 pricing.

在LUIS.ai中创建了新的LUIS应用程序,并通过azure门户使用新创建的luis计划分配了新资源.

Created new LUIS app in LUIS.ai, assign new resource with the newly created luis plan from azure portal.

通过bot模拟器添加服务.仍被禁止的错误.

Add the service via bot emulator. Still Forbidden error.

Bot配置显示旧的订阅密钥,因此我单击LUIS.ai中的终点URL,它具有订阅密钥,因此我将其复制到bot配置中. (我删除了加密.)仍然禁止错误.

Bot config showing old subscription key so i click the end point url in LUIS.ai it has a subscription key so i copy that to the bot config. (i remove the encryption.) still Forbidden error.

完成所有这些步骤后,仍然会说无效的状态代码Forbidden"

After all these steps it is still saying "invalid status code Forbidden"

路易斯爱

推荐答案

您似乎要解决一些问题.

It looks like you have a few issues to tackle.

1)我猜您的.bot文件具有加密值.一种,因为您报告读取.bot文件时出错.您是否直接将其编辑为JSON?并且,两个,因为创作密钥的长度.加密后的值将与原始值不匹配.编辑应该通过Bot Framework Emulator完成.您也可以在那里删除文件加密,如果需要的话,可以直接编辑文件.

1) I'm guessing that your .bot file has encrypted values. One, because you are reporting an error reading the .bot file. Did you edit it directly as JSON? And, two, because of the length of the authoring key. When the values are encrypted they will not match the original. Editing should be done via the Bot Framework Emulator. You can also remove file encryption there allowing you to edit the file directly, if that is what you want.

2)无法将LUIS.ai帐户从一个LUIS订阅转移到另一个.但是,您可以创建新的LUIS订阅,并使用新的LUIS.ai帐户将应用导出/导入到新的订阅中.

2) There is no way to transfer a LUIS.ai account from one LUIS subscription to another. You can, however, create a new LUIS subscription and export/import the app to the new subscription under a new LUIS.ai account.

为此,生成的启动密钥主要用于创作新应用,并与

To that end, the starter key that is generated is used primarily for authoring new apps and with the LUIS programmatic authorizing APIs. You should create a new endpoint key (accessible via Manage => 'Keys and Endpoints' in your LUIS app) and use this to send queries to your app for testing. This endpoint key carries a monthly limit of 10,000 messages/month on the free tier.

您可以在此文档.您还可以阅读

You can read about LUIS model/key boundaries (i.e. threshold limits) in this doc. You can also read here on how to view your summary usage for managing your endpoint quota.

希望有帮助!

以下是关键限制的清单,可供即时参考.

Here's a listing of the key limits for immediate reference.

这篇关于有关使用Botframework v4更改为新LUIS密钥的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆