mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
feat: allow user specific home dir (#38903)
This commit is contained in:
1 parent
2c4d8ef098
commit
f71a30bebf
10 files changed
+113
-7
No files matched your search
@@ -68,6 +68,7 @@ def create_default_layer_providers(
|
||||
inner_api_url: str = "http://localhost:5001",
|
||||
inner_api_key: str = "",
|
||||
shell_provider: ShellProviderProtocol | None = None,
|
||||
shell_home_root: str = "/home",
|
||||
agent_stub_api_base_url: str | None = None,
|
||||
agent_stub_token_factory: ShellAgentStubTokenFactory | None = None,
|
||||
) -> tuple[DifyAgentLayerProvider, ...]:
|
||||
@@ -92,6 +93,7 @@ def create_default_layer_providers(
|
||||
create=lambda config: DifyShellLayer.from_config_with_settings(
|
||||
DifyShellLayerConfig.model_validate(config),
|
||||
shell_provider=shell_provider,
|
||||
shell_home_root=shell_home_root,
|
||||
agent_stub_api_base_url=agent_stub_api_base_url,
|
||||
agent_stub_token_factory=agent_stub_token_factory,
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user