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
feat: If combining text and files, place the text prompt after the fi… (#23779)
jiangbo721c0bb2ec8515b
diff --git a/api/core/memory/token_buffer_memory.py b/api/core/memory/token_buffer_memory.pyindex 91f17568b65..2a76b1f41a7 100644--- a/api/core/memory/token_buffer_memory.py+++ b/api/core/memory/token_buffer_memory.py@@ -99,13 +99,13 @@ class TokenBufferMemory:prompt_messages.append(UserPromptMessage(content=message.query))else:prompt_message_contents: list[PromptMessageContentUnionTypes] = []- prompt_message_contents.append(TextPromptMessageContent(data=message.query))for file in file_objs:prompt_message = file_manager.to_prompt_message_content(file,image_detail_config=detail,)prompt_message_contents.append(prompt_message)+ prompt_message_contents.append(TextPromptMessageContent(data=message.query))prompt_messages.append(UserPromptMessage(content=prompt_message_contents))