gpt4 book ai didi

node.js - Microsoft bot 旧版本警告消息即使在更新后仍然存在

转载 作者:搜寻专家 更新时间:2023-10-31 23:45:47 24 4
gpt4 key购买 nike

我将 SDK 版本更新到 3.8.1,但在本地机器人模拟器上仍然收到警告消息。

Warning: The Bot is using an SDK version earlier than 3.5.0.
Warning: SDK versions earlier than 3.5.0 use an authentication configuration that will no longer work after July 31, 2017.
Warning: For your bot to continue working beyond this date, please update your bot to use an SDK version greater than or equal to 3.5.0.

Environment setup:
Lang | Nodejs
Editor | Visual Studio Code
OS | macOS Sierra
botframework-emulator v3.5.29
SDK | "botbuilder": "^3.8.1"

最佳答案

我在使用 botframework-emulator 3.5.29botbuilder 3.7.1 时遇到了同样的问题。

Bot Emulator 通过查看 user-agent header (代码 herehere )来检查版本, header 由 bot 框架设置 here .

我会说这是模拟器中的问题,因为 header IS 是由 bot 框架发送的。就我而言,我得到:

用户代理:BF-DirectLine (Microsoft-BotFramework/3.1 +https://botframework.com/ua)

POST 将消息发送到 /api/messages 时,模拟器期望在向 https://directline.botframework 发出的请求中包含该 header 。 com/v3/conversations/:conversationId/activities/:activityId,导致 user-agent header 未定义。

关于node.js - Microsoft bot 旧版本警告消息即使在更新后仍然存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43931008/

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