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: anthropic messages empty raise errors (#1893)
takatost6333cf43a8ac
diff --git a/api/core/model_runtime/model_providers/anthropic/llm/llm.py b/api/core/model_runtime/model_providers/anthropic/llm/llm.pyindex 564e2c6b387..425f3e53986 100644--- a/api/core/model_runtime/model_providers/anthropic/llm/llm.py+++ b/api/core/model_runtime/model_providers/anthropic/llm/llm.py@@ -252,6 +252,9 @@ class AnthropicLargeLanguageModel(LargeLanguageModel)::param messages: List of PromptMessage to combine.:return: Combined string with necessary human_prompt and ai_prompt tags."""+ if not messages:+ return ''+messages = messages.copy() # don't mutate the original listif not isinstance(messages[-1], AssistantPromptMessage):messages.append(AssistantPromptMessage(content=""))