fix: 修复xinference 语音模型提示model参数的问题

--bug=1047998 --user=刘瑞斌 【模型管理】xinference语音合成模型,点击播放按钮朗读文本没有反应 https://www.tapd.cn/57709429/s/1602805
This commit is contained in:
CaptainB 2024-10-30 20:37:41 +08:00
parent 16cf619032
commit 798ca17b3a

View File

@ -15,12 +15,14 @@ def custom_get_token_ids(text: str):
class XInferenceTextToSpeech(MaxKBBaseModel, BaseTextToSpeech):
api_base: str
api_key: str
model: str
params: dict
def __init__(self, **kwargs):
super().__init__(**kwargs)
self.api_key = kwargs.get('api_key')
self.api_base = kwargs.get('api_base')
self.model = kwargs.get('model')
self.params = kwargs.get('params')
@staticmethod