mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-15 19:04:45 +08:00
fix: presever the local setting between frontend and backend (#670)
* fix: presever the local setting between frontend and backend * Added unit test for the state preservation * fix: passing the locale to the agent call * fix: apply the fix after code review
This commit is contained in:
@@ -106,6 +106,8 @@ async def chat_stream(request: ChatRequest):
|
||||
# Check if MCP server configuration is enabled
|
||||
mcp_enabled = get_bool_env("ENABLE_MCP_SERVER_CONFIGURATION", False)
|
||||
|
||||
logger.debug(f"get the request locale : {request.locale}")
|
||||
|
||||
# Validate MCP settings if provided
|
||||
if request.mcp_settings and not mcp_enabled:
|
||||
raise HTTPException(
|
||||
|
||||
Reference in New Issue
Block a user