在 Dialogflow 版本之间迁移
V2beta1 至 V2
V2beta1 API 用于与 Dialogflow 用户共享 Beta 版特性。
本部分提供了有关切换到稳定版 V2 API 的建议。
- 如果您使用的是 REST 或 RPC,请将端点从
dialogflow.googleapis.com/v2beta1/...
更新为 dialogflow.googleapis.com/v2/...
- 如果您使用的是客户端库,请将其更新:
- 动态语言(Python、Node.js、Ruby):对软件包进行升级,您的代码将自动使用最新的稳定版本。
- 静态语言(Java、C#、PHP、Go):安装新的软件包,并将所有导入语句更新为引用“v2”(而不是“v2beta1”)。
- 用于控制是否为某个
Intent
启用机器学习 (ML) 的字段已发生更改。mlEnabled
字段已被移除并由 mlDisabled
字段取代,而且默认情况下机器学习功能处于启用状态。
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-08-09 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"很难理解"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"信息或示例代码不正确"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"没有我需要的信息/示例"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]