sync update from LAN repo (source master @ ca48c4ec)

This commit is contained in:
gozeros committed 2026-11-05 10:53:54 +08:00
1 parent 8bc8b0e082
commit ea9dcff9c0
873 files changed
+107866 -14011

No files matched your search

@@ -16,6 +16,18 @@ class WriteFileTransport(StrEnum):
TEXT_BRIDGE = "text_bridge"
class ToolCallTransport(StrEnum):
"""How provider tool calls reach DeerFlow.
``deepseek_dsml`` is an application-side compatibility fallback for
OpenAI-compatible gateways that leave DeepSeek V4/V4.1 DSML in assistant
``content`` instead of returning standard ``message.tool_calls``.
"""
NATIVE = "native"
DEEPSEEK_DSML = "deepseek_dsml"
class ModelConfig(BaseModel):
"""Config section for a model"""
@@ -51,6 +63,14 @@ class ModelConfig(BaseModel):
"text_bridge remains available only for backward compatibility."
),
)
tool_call_transport: ToolCallTransport = Field(
default=ToolCallTransport.NATIVE,
description=(
"How DeerFlow receives provider tool calls. Use deepseek_dsml only "
"for a DeepSeek V4/V4.1 OpenAI-compatible endpoint that leaks raw "
"DSML through assistant content instead of message.tool_calls."
),
)
supports_thinking: bool = Field(default_factory=lambda: False, description="Whether the model supports thinking")
supports_reasoning_effort: bool = Field(
default_factory=lambda: False,