Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix:typo (#2808)

呆萌闷油瓶8f9125b08a75
diff --git a/api/core/model_runtime/entities/model_entities.py b/api/core/model_runtime/entities/model_entities.py
index 60cb655c989..7dfd811b4f6 100644
--- a/api/core/model_runtime/entities/model_entities.py
+++ b/api/core/model_runtime/entities/model_entities.py
@@ -133,7 +133,7 @@ class ModelPropertyKey(Enum):
DEFAULT_VOICE = "default_voice"
VOICES = "voices"
WORD_LIMIT = "word_limit"
- AUDOI_TYPE = "audio_type"
+ AUDIO_TYPE = "audio_type"
MAX_WORKERS = "max_workers"
diff --git a/api/core/model_runtime/model_providers/__base/tts_model.py b/api/core/model_runtime/model_providers/__base/tts_model.py
index 722d80c91e8..22e546aad70 100644
--- a/api/core/model_runtime/model_providers/__base/tts_model.py
+++ b/api/core/model_runtime/model_providers/__base/tts_model.py
@@ -94,8 +94,8 @@ class TTSModel(AIModel):
"""
model_schema = self.get_model_schema(model, credentials)
- if model_schema and ModelPropertyKey.AUDOI_TYPE in model_schema.model_properties:
- return model_schema.model_properties[ModelPropertyKey.AUDOI_TYPE]
+ if model_schema and ModelPropertyKey.AUDIO_TYPE in model_schema.model_properties:
+ return model_schema.model_properties[ModelPropertyKey.AUDIO_TYPE]
def _get_model_word_limit(self, model: str, credentials: dict) -> int:
"""
diff --git a/api/core/model_runtime/model_providers/azure_openai/_constant.py b/api/core/model_runtime/model_providers/azure_openai/_constant.py
index 559442274e7..dda02588126 100644
--- a/api/core/model_runtime/model_providers/azure_openai/_constant.py
+++ b/api/core/model_runtime/model_providers/azure_openai/_constant.py
@@ -628,7 +628,7 @@ TTS_BASE_MODELS = [
},
],
ModelPropertyKey.WORD_LIMIT: 120,
- ModelPropertyKey.AUDOI_TYPE: 'mp3',
+ ModelPropertyKey.AUDIO_TYPE: 'mp3',
ModelPropertyKey.MAX_WORKERS: 5
},
pricing=PriceConfig(
@@ -682,7 +682,7 @@ TTS_BASE_MODELS = [
},
],
ModelPropertyKey.WORD_LIMIT: 120,
- ModelPropertyKey.AUDOI_TYPE: 'mp3',
+ ModelPropertyKey.AUDIO_TYPE: 'mp3',
ModelPropertyKey.MAX_WORKERS: 5
},
pricing=PriceConfig(