sync update from LAN repo (source dhk-1 @ 3b1ec5b4)
This commit is contained in:
1 parent
da6521b6cb
commit
264e2200d6
995 files changed
+148105
-13399
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,8 +63,22 @@ 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, description="Whether the model supports reasoning effort")
|
||||
supports_reasoning_effort: bool = Field(
|
||||
default_factory=lambda: False,
|
||||
description=(
|
||||
"Legacy parser compatibility only. Gateway reasoning-effort capability is stored in the "
|
||||
"model_capabilities database table."
|
||||
),
|
||||
)
|
||||
when_thinking_enabled: dict | None = Field(
|
||||
default_factory=lambda: None,
|
||||
description="Extra settings to be passed to the model when thinking is enabled",
|
||||
|
||||
Reference in new issue
Block a user