diff --git a/src/main/kotlin/cn/yiiguxing/plugin/translate/trans/openai/AzureServiceVersion.kt b/src/main/kotlin/cn/yiiguxing/plugin/translate/trans/openai/AzureServiceVersion.kt index 3491714f8..3d2f8c410 100644 --- a/src/main/kotlin/cn/yiiguxing/plugin/translate/trans/openai/AzureServiceVersion.kt +++ b/src/main/kotlin/cn/yiiguxing/plugin/translate/trans/openai/AzureServiceVersion.kt @@ -5,7 +5,7 @@ package cn.yiiguxing.plugin.translate.trans.openai enum class AzureServiceVersion(val value: String) { V2023_05_15("2023-05-15"), V2024_02_01("2024-02-01"), - V2024_04_01_PREVIEW("2024-03-01-preview"); + V2024_05_01_PREVIEW("2024-05-01-preview"); companion object { fun previewVersions() = AzureServiceVersion.values().filter { diff --git a/src/main/kotlin/cn/yiiguxing/plugin/translate/trans/openai/OpenAiSettings.kt b/src/main/kotlin/cn/yiiguxing/plugin/translate/trans/openai/OpenAiSettings.kt index ad8acb11f..8ba9f0b57 100644 --- a/src/main/kotlin/cn/yiiguxing/plugin/translate/trans/openai/OpenAiSettings.kt +++ b/src/main/kotlin/cn/yiiguxing/plugin/translate/trans/openai/OpenAiSettings.kt @@ -70,7 +70,7 @@ class OpenAiSettings : BaseState(), PersistentStateComponent { override var apiVersion: AzureServiceVersion by enum(AzureServiceVersion.V2024_02_01) @get:OptionTag("TTS_API_VERSION") - override var ttsApiVersion: AzureServiceVersion by enum(AzureServiceVersion.V2024_04_01_PREVIEW) + override var ttsApiVersion: AzureServiceVersion by enum(AzureServiceVersion.V2024_05_01_PREVIEW) @get:OptionTag("DEPLOYMENT_ID") override var deployment: String? by string()