Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
V2beta1 ke V2
V2beta1 API digunakan untuk membagikan fitur beta kepada pengguna Dialogflow.
Bagian ini berisi saran untuk beralih ke V2 API yang stabil.
Jika Anda menggunakan REST atau RPC, update endpoint dari dialogflow.googleapis.com/v2beta1/... ke dialogflow.googleapis.com/v2/...
Jika Anda menggunakan library klien, update library tersebut:
Bahasa dinamis (Python, Node.js, Ruby): Upgrade paket, dan kode Anda akan otomatis menggunakan versi stabil terbaru.
Bahasa statis (Java, C#, PHP, Go):
Instal paket baru
dan perbarui semua pernyataan impor untuk mereferensikan "v2", bukan "v2beta1".
Kolom yang mengontrol apakah
machine learning (ML) diaktifkan untuk Intent telah berubah.
Kolom mlEnabled telah dihapus dan diganti dengan kolom mlDisabled, dan ML diaktifkan secara default.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-18 UTC."],[[["\u003cp\u003eThe V2 API is the stable version, and the V2beta1 API was used for beta features, so users should transition to the V2 API.\u003c/p\u003e\n"],["\u003cp\u003eFor REST or RPC, update the endpoint URL from \u003ccode\u003edialogflow.googleapis.com/v2beta1/...\u003c/code\u003e to \u003ccode\u003edialogflow.googleapis.com/v2/...\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eClient library users need to update their packages: dynamic languages can simply upgrade the package, while static languages must install the new package and update import statements to "v2".\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003emlEnabled\u003c/code\u003e field in V2beta1 has been replaced by \u003ccode\u003emlDisabled\u003c/code\u003e in V2, and machine learning is now enabled by default in the V2 version.\u003c/p\u003e\n"]]],[],null,["# Migrating between Dialogflow versions\n\nV2beta1 to V2\n-------------\n\nThe V2beta1 API is used to share beta features with Dialogflow users.\nThis section has advice for switching to the stable V2 API.\n| **Important:** The default behavior for enabling machine learning has changed. See details below.\n\n- If you are using REST or RPC, update the endpoint from `dialogflow.googleapis.com/v2beta1/...` to `dialogflow.googleapis.com/v2/...`\n- If you are using a [client library](/dialogflow/docs/reference/libraries), update it:\n - **Dynamic languages** (Python, Node.js, Ruby): Upgrade the package, and your code will automatically use the latest stable version.\n - **Static languages** (Java, C#, PHP, Go): Install the new package and update all import statements to reference \"v2\" instead of \"v2beta1\".\n- The field that controls whether machine learning (ML) is enabled for an `Intent` has changed. The `mlEnabled` field has been removed and replaced by the `mlDisabled` field, and ML is enabled by default."]]