Skip to content

Commit

Permalink
Update azure service api version
Browse files Browse the repository at this point in the history
  • Loading branch information
YiiGuxing committed May 26, 2024
1 parent 4fb98d2 commit 10e422a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class OpenAiSettings : BaseState(), PersistentStateComponent<OpenAiSettings> {
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()
Expand Down

0 comments on commit 10e422a

Please sign in to comment.