From d28446301f4a3429ed2999a9fea5ae22c7518947 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=86=E8=90=8C=E9=97=B7=E6=B2=B9=E7=93=B6?= <253605712@qq.com> Date: Sun, 8 Sep 2024 23:58:02 +0800 Subject: [PATCH] feat:add fishaudio in xinference (#8100) --- .../model_providers/xinference/xinference_helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/model_runtime/model_providers/xinference/xinference_helper.py b/api/core/model_runtime/model_providers/xinference/xinference_helper.py index 75161ad376..151166f165 100644 --- a/api/core/model_runtime/model_providers/xinference/xinference_helper.py +++ b/api/core/model_runtime/model_providers/xinference/xinference_helper.py @@ -89,7 +89,7 @@ class XinferenceHelper: model_handle_type = 'embedding' elif response_json.get('model_type') == 'audio': model_handle_type = 'audio' - if model_family and model_family in ['ChatTTS', 'CosyVoice']: + if model_family and model_family in ['ChatTTS', 'CosyVoice', 'FishAudio']: model_ability.append('text-to-audio') else: model_ability.append('audio-to-text')