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: credentials validation of ababa (#2183)
Yeuolydda32c6880ee
diff --git a/api/core/model_runtime/model_providers/minimax/llm/llm.py b/api/core/model_runtime/model_providers/minimax/llm/llm.pyindex 42261563094..429c75c537a 100644--- a/api/core/model_runtime/model_providers/minimax/llm/llm.py+++ b/api/core/model_runtime/model_providers/minimax/llm/llm.py@@ -55,7 +55,7 @@ class MinimaxLargeLanguageModel(LargeLanguageModel):stream=False,user='')- except InvalidAuthenticationError as e:+ except (InvalidAuthenticationError, InsufficientAccountBalanceError) as e:raise CredentialsValidateFailedError(f"Invalid API key: {e}")def get_num_tokens(self, model: str, credentials: dict, prompt_messages: list[PromptMessage],diff --git a/api/core/model_runtime/model_providers/minimax/minimax.py b/api/core/model_runtime/model_providers/minimax/minimax.pyindex 97afe6aa443..52f6c2f1d3a 100644--- a/api/core/model_runtime/model_providers/minimax/minimax.py+++ b/api/core/model_runtime/model_providers/minimax/minimax.py@@ -27,4 +27,4 @@ class MinimaxProvider(ModelProvider):raise exexcept Exception as ex:logger.exception(f'{self.get_provider_schema().provider} credentials validate failed')- raise ex+ raise CredentialsValidateFailedError(f'{ex}')