瀏覽代碼

fix:typo (#2808)

tags/0.5.10
呆萌闷油瓶 1 年之前
父節點
當前提交
8f9125b08a
沒有連結到貢獻者的電子郵件帳戶。

+ 1
- 1
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"



+ 2
- 2
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:
"""

+ 2
- 2
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(

Loading…
取消
儲存