gpt4 book ai didi

azure - 将 Microsoft Bot DirectLine API 指向插槽实例

转载 作者:行者123 更新时间:2023-12-02 07:08:05 24 4
gpt4 key购买 nike

我想遵循 Azure 最佳实践并利用部署槽来测试我的聊天机器人。我已经部署了 2 个机器人实例。

Production bot: https://[my-bot].azurewebsites.net
Staging bot: https://[my-bot-staging].azurewebsites.net

我有一个 DirectLine 应用程序,可以成功连接到我的生产机器人,但不知道如何将其连接到登台实例。

有关此主题的最新 StackOverflow 问题已经过时了。这里接受的答案声称您需要 2 个物理机器人而不是使用部署槽:Setting up slots or multiple environments for Azure Bot Service

2018年还是这样吗?如何将 DirectLine 连接到暂存槽?

最佳答案

I have a DirectLine app that can successfully connect to my production bot, but do not know how to connect it to the staging instance.

如果您希望 DirectLine 应用程序与相同的机器人服务配合使用,并将其连接到托管在暂存槽上的机器人应用程序,您可以从现有生产槽克隆暂存槽的配置,然后替换消息传送端点 Settings Blade 。

enter image description here

此外,您还可以创建Bot Channels Registration机器人服务,用于将暂存槽上托管的机器人应用程序连接到其他 channel 。

请确保您使用在创建机器人 channel 注册时创建的相应 Microsoft 应用程序的 Microsoft 应用程序 ID 和密码,为暂存槽上托管的机器人应用程序的 MicrosoftAppId 和 MicrosoftAppPassword 提供/设置设置.

测试结果:

enter image description here

关于azure - 将 Microsoft Bot DirectLine API 指向插槽实例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51680493/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com