fix: 修复xinference 语音模型提示model参数的问题
--bug=1047998 --user=刘瑞斌 【模型管理】xinference语音合成模型,点击播放按钮朗读文本没有反应 https://www.tapd.cn/57709429/s/1602805
This commit is contained in:
parent
16cf619032
commit
798ca17b3a
@ -15,12 +15,14 @@ def custom_get_token_ids(text: str):
|
|||||||
class XInferenceTextToSpeech(MaxKBBaseModel, BaseTextToSpeech):
|
class XInferenceTextToSpeech(MaxKBBaseModel, BaseTextToSpeech):
|
||||||
api_base: str
|
api_base: str
|
||||||
api_key: str
|
api_key: str
|
||||||
|
model: str
|
||||||
params: dict
|
params: dict
|
||||||
|
|
||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
super().__init__(**kwargs)
|
super().__init__(**kwargs)
|
||||||
self.api_key = kwargs.get('api_key')
|
self.api_key = kwargs.get('api_key')
|
||||||
self.api_base = kwargs.get('api_base')
|
self.api_base = kwargs.get('api_base')
|
||||||
|
self.model = kwargs.get('model')
|
||||||
self.params = kwargs.get('params')
|
self.params = kwargs.get('params')
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user