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: zhipu tool calling, this PR fixes the bug described in issue #5496 (#5469)
vccler48757e581ece
diff --git a/api/core/model_runtime/model_providers/zhipuai/llm/llm.py b/api/core/model_runtime/model_providers/zhipuai/llm/llm.pyindex ee09b8cb742..ff971964a86 100644--- a/api/core/model_runtime/model_providers/zhipuai/llm/llm.py+++ b/api/core/model_runtime/model_providers/zhipuai/llm/llm.py@@ -10,6 +10,7 @@ from core.model_runtime.entities.message_entities import (PromptMessageRole,PromptMessageTool,SystemPromptMessage,+ ToolPromptMessage,UserPromptMessage,)from core.model_runtime.errors.validate import CredentialsValidateFailedError@@ -463,6 +464,8 @@ class ZhipuAILargeLanguageModel(_CommonZhipuaiAI, LargeLanguageModel):message_text = f"{ai_prompt} {content}"elif isinstance(message, SystemPromptMessage):message_text = content+ elif isinstance(message, ToolPromptMessage):+ message_text = contentelse:raise ValueError(f"Got unknown type {message}")