gpt4 book ai didi

botframework - Microsoft Bot Framework - Bot 进入休眠状态。有没有办法防止它?

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

我的基于 bot 框架的 bot 运行良好。但是当我在一段时间不活动后(比如说一天)第一次与机器人交互时,机器人似乎需要很长时间(大约 10-45 秒)才能发回它的第一个回复。在回复之后,响应时间再次相当不错。

对我来说,后端服务似乎进入了某种 sleep 模式,第一个请求将其唤醒。

有没有办法影响这种行为?我担心我的用户的初始响应时间很长。

谢谢你的帮助。

最佳答案

如果使用 Azure 网站,请参阅“始终支持”

https://docs.microsoft.com/en-us/azure/app-service-web/web-sites-configure

Always On. By default, web apps are unloaded if they are idle for some period of time. This lets the system conserve resources. In Basic or Standard mode, you can enable Always On to keep the app loaded all the time. If your app runs continuous web jobs, you should enable Always On, or the web jobs may not run reliably.

关于botframework - Microsoft Bot Framework - Bot 进入休眠状态。有没有办法防止它?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40822971/

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