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.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: fish audio wrong validate credentials interface (#11019)
yihong448a19bf54e5
diff --git a/api/core/model_runtime/model_providers/fishaudio/fishaudio.py b/api/core/model_runtime/model_providers/fishaudio/fishaudio.pyindex 3bc4b533e08..a99803eeea4 100644--- a/api/core/model_runtime/model_providers/fishaudio/fishaudio.py+++ b/api/core/model_runtime/model_providers/fishaudio/fishaudio.py@@ -18,7 +18,8 @@ class FishAudioProvider(ModelProvider):"""try:model_instance = self.get_model_instance(ModelType.TTS)- model_instance.validate_credentials(credentials=credentials)+ # FIXME fish tts do not have model for now, so set it to empty string instead+ model_instance.validate_credentials(model="", credentials=credentials)except CredentialsValidateFailedError as ex:raise exexcept Exception as ex:diff --git a/api/core/model_runtime/model_providers/fishaudio/tts/tts.py b/api/core/model_runtime/model_providers/fishaudio/tts/tts.pyindex e518d7b95b6..43a34cb090f 100644--- a/api/core/model_runtime/model_providers/fishaudio/tts/tts.py+++ b/api/core/model_runtime/model_providers/fishaudio/tts/tts.py@@ -66,7 +66,7 @@ class FishAudioText2SpeechModel(TTSModel):voice=voice,)- def validate_credentials(self, credentials: dict, user: Optional[str] = None) -> None:+ def validate_credentials(self, model: str, credentials: dict, user: Optional[str] = None) -> None:"""Validate credentials for text2speech model@@ -76,7 +76,7 @@ class FishAudioText2SpeechModel(TTSModel):try:self.get_tts_model_voices(- None,+ "",credentials={"api_key": credentials["api_key"],"api_base": credentials["api_base"],