Skip to content

Commit

Permalink
fix:typo (#2808)
Browse files Browse the repository at this point in the history
  • Loading branch information
leslie2046 authored Mar 13, 2024
1 parent e5e97c0 commit 8f9125b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion api/core/model_runtime/entities/model_entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"


Expand Down
4 changes: 2 additions & 2 deletions api/core/model_runtime/model_providers/__base/tts_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ def _get_model_audio_type(self, model: str, credentials: dict) -> str:
"""
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:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ class AzureBaseModel(BaseModel):
},
],
ModelPropertyKey.WORD_LIMIT: 120,
ModelPropertyKey.AUDOI_TYPE: 'mp3',
ModelPropertyKey.AUDIO_TYPE: 'mp3',
ModelPropertyKey.MAX_WORKERS: 5
},
pricing=PriceConfig(
Expand Down Expand Up @@ -682,7 +682,7 @@ class AzureBaseModel(BaseModel):
},
],
ModelPropertyKey.WORD_LIMIT: 120,
ModelPropertyKey.AUDOI_TYPE: 'mp3',
ModelPropertyKey.AUDIO_TYPE: 'mp3',
ModelPropertyKey.MAX_WORKERS: 5
},
pricing=PriceConfig(
Expand Down

0 comments on commit 8f9125b

Please sign in to comment.