Bläddra i källkod

fix:typo (#2808)

tags/0.5.10
呆萌闷油瓶 1 år sedan
förälder
incheckning
8f9125b08a
Inget konto är kopplat till bidragsgivarens mejladress

+ 1
- 1
api/core/model_runtime/entities/model_entities.py Visa fil

DEFAULT_VOICE = "default_voice" DEFAULT_VOICE = "default_voice"
VOICES = "voices" VOICES = "voices"
WORD_LIMIT = "word_limit" WORD_LIMIT = "word_limit"
AUDOI_TYPE = "audio_type"
AUDIO_TYPE = "audio_type"
MAX_WORKERS = "max_workers" MAX_WORKERS = "max_workers"





+ 2
- 2
api/core/model_runtime/model_providers/__base/tts_model.py Visa fil

""" """
model_schema = self.get_model_schema(model, credentials) 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: def _get_model_word_limit(self, model: str, credentials: dict) -> int:
""" """

+ 2
- 2
api/core/model_runtime/model_providers/azure_openai/_constant.py Visa fil

}, },
], ],
ModelPropertyKey.WORD_LIMIT: 120, ModelPropertyKey.WORD_LIMIT: 120,
ModelPropertyKey.AUDOI_TYPE: 'mp3',
ModelPropertyKey.AUDIO_TYPE: 'mp3',
ModelPropertyKey.MAX_WORKERS: 5 ModelPropertyKey.MAX_WORKERS: 5
}, },
pricing=PriceConfig( pricing=PriceConfig(
}, },
], ],
ModelPropertyKey.WORD_LIMIT: 120, ModelPropertyKey.WORD_LIMIT: 120,
ModelPropertyKey.AUDOI_TYPE: 'mp3',
ModelPropertyKey.AUDIO_TYPE: 'mp3',
ModelPropertyKey.MAX_WORKERS: 5 ModelPropertyKey.MAX_WORKERS: 5
}, },
pricing=PriceConfig( pricing=PriceConfig(

Laddar…
Avbryt
Spara