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: zhipuai history format wrong (#1897)
takatostbb7af56e6900
diff --git a/api/core/model_runtime/model_providers/zhipuai/llm/llm.py b/api/core/model_runtime/model_providers/zhipuai/llm/llm.pyindex 4540413897b..4a6cd7d101d 100644--- a/api/core/model_runtime/model_providers/zhipuai/llm/llm.py+++ b/api/core/model_runtime/model_providers/zhipuai/llm/llm.py@@ -117,7 +117,10 @@ class ZhipuAILargeLanguageModel(_CommonZhipuaiAI, LargeLanguageModel):params = {'model': model,- 'prompt': [{ 'role': prompt_message.role.value, 'content': prompt_message.content } for prompt_message in prompt_messages],+ 'prompt': [{+ 'role': prompt_message.role.value if prompt_message.role.value != 'system' else 'user',+ 'content': prompt_message.content+ } for prompt_message in prompt_messages],**model_parameters}diff --git a/api/core/model_runtime/model_providers/zhipuai/zhipuai.yaml b/api/core/model_runtime/model_providers/zhipuai/zhipuai.yamlindex cbee3717a32..608a765baf6 100644--- a/api/core/model_runtime/model_providers/zhipuai/zhipuai.yaml+++ b/api/core/model_runtime/model_providers/zhipuai/zhipuai.yaml@@ -24,7 +24,7 @@ provider_credential_schema:- variable: api_keylabel:en_US: APIKey- type: text-input+ type: secret-inputrequired: trueplaceholder:zh_Hans: 在此输入您的 APIKey