统一网络

This commit is contained in:
zcr
2026-04-08 10:49:19 +08:00
parent db8014f024
commit a9ffb5a446
2 changed files with 6 additions and 3 deletions

View File

@@ -44,10 +44,10 @@ async def chat_stream(request: DeepAgentChatRequest):
* `config_params`: (可选) 对话配置参数 * `config_params`: (可选) 对话配置参数
```json ```json
{ {
"message": "示例", "message": "你好",
"config_params": { "config_params": {
"type": "test", "type": "test",
"value": "test", "region": "test",
"style": "test" "style": "test"
} }
} }

View File

@@ -16,7 +16,10 @@ class DeepAgentChatRequest(BaseModel):
input_image_paths: Optional[list[str]] = Field(None, description="上传图片地址集合") # ✅ 新增 input_image_paths: Optional[list[str]] = Field(None, description="上传图片地址集合") # ✅ 新增
thread_id: Optional[str] = Field(None, description="会话线程ID不传则开启新会话") thread_id: Optional[str] = Field(None, description="会话线程ID不传则开启新会话")
checkpoint_id: Optional[str] = Field(None, description="回溯点的ID用于从历史点开启新对话") checkpoint_id: Optional[str] = Field(None, description="回溯点的ID用于从历史点开启新对话")
config_params: Optional[AgentConfig] = None config_params: Optional[AgentConfig] = Field(
default=None,
description="Agent 配置参数type/region/style 等)"
)
need_suggestion: float = 0 need_suggestion: float = 0
use_report: bool = False # ← 新增:是否使用深度报告 use_report: bool = False # ← 新增:是否使用深度报告