Skip to content

Commit

Permalink
fix: 修复xinference 语音模型提示model参数的问题
Browse files Browse the repository at this point in the history
--bug=1047998 --user=刘瑞斌 【模型管理】xinference语音合成模型,点击播放按钮朗读文本没有反应 https://www.tapd.cn/57709429/s/1602805
  • Loading branch information
liuruibin committed Oct 30, 2024
1 parent 16cf619 commit 798ca17
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 798ca17

Please sign in to comment.