Merge branch 'master' into bot_manager
This commit is contained in:
commit
5d10ed275e
@ -203,7 +203,7 @@ class AgentConfig:
|
|||||||
enable_memori=enable_memori,
|
enable_memori=enable_memori,
|
||||||
memori_semantic_search_top_k=bot_config.get("memori_semantic_search_top_k", MEM0_SEMANTIC_SEARCH_TOP_K),
|
memori_semantic_search_top_k=bot_config.get("memori_semantic_search_top_k", MEM0_SEMANTIC_SEARCH_TOP_K),
|
||||||
trace_id=trace_id,
|
trace_id=trace_id,
|
||||||
shell_env=getattr(request, 'shell_env', None) or bot_config.get("shell_env") or {},
|
shell_env=bot_config.get("shell_env") or {},
|
||||||
)
|
)
|
||||||
|
|
||||||
# 在创建 config 时尽早准备 checkpoint 消息
|
# 在创建 config 时尽早准备 checkpoint 消息
|
||||||
|
|||||||
@ -68,7 +68,6 @@ class ChatRequestV2(BaseModel):
|
|||||||
language: Optional[str] = "zh"
|
language: Optional[str] = "zh"
|
||||||
user_identifier: Optional[str] = ""
|
user_identifier: Optional[str] = ""
|
||||||
session_id: Optional[str] = None
|
session_id: Optional[str] = None
|
||||||
shell_env: Optional[Dict[str, str]] = None
|
|
||||||
|
|
||||||
model_config = ConfigDict(extra='allow')
|
model_config = ConfigDict(extra='allow')
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user