Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

feat:add fishaudio in xinference (#8100)

呆萌闷油瓶d28446301f4a
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 75161ad376c..151166f165c 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')