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
enhance guessing mimetype of tool file (#17640)
Qun0e136b42a221
diff --git a/api/core/tools/tool_file_manager.py b/api/core/tools/tool_file_manager.pyindex 1573e0c2197..7e8d4280d48 100644--- a/api/core/tools/tool_file_manager.py+++ b/api/core/tools/tool_file_manager.py@@ -108,7 +108,11 @@ class ToolFileManager:except httpx.TimeoutException:raise ValueError(f"timeout when downloading file from {file_url}")- mimetype = guess_type(file_url)[0] or "application/octet-stream"+ mimetype = (+ guess_type(file_url)[0]+ or response.headers.get("Content-Type", "").split(";")[0].strip()+ or "application/octet-stream"+ )extension = guess_extension(mimetype) or ".bin"unique_name = uuid4().hexfilename = f"{unique_name}{extension}"