mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 18:08:07 +08:00
feat(sandbox): draft storage
This commit is contained in:
@ -102,6 +102,10 @@ class SandboxBuilder:
|
||||
vm_class = _get_sandbox_class(vm_type)
|
||||
vm_class.validate(options)
|
||||
|
||||
@classmethod
|
||||
def draft_id(cls, user_id: str) -> str:
|
||||
return f"sandbox_draft_{user_id}"
|
||||
|
||||
|
||||
class VMConfig:
|
||||
@staticmethod
|
||||
|
||||
Reference in New Issue
Block a user