mirror of
https://github.com/langgenius/dify.git
synced 2026-05-02 06:56:29 +08:00
fix: fix circular ref
This commit is contained in:
parent
8fd088754a
commit
f4567fbf9e
@ -40,7 +40,6 @@ from services.enterprise.plugin_manager_service import PluginCredentialType
|
|||||||
from services.errors.app import IsDraftWorkflowError, WorkflowHashNotEqualError
|
from services.errors.app import IsDraftWorkflowError, WorkflowHashNotEqualError
|
||||||
from services.workflow.workflow_converter import WorkflowConverter
|
from services.workflow.workflow_converter import WorkflowConverter
|
||||||
|
|
||||||
from .chatflow_memory_service import ChatflowMemoryService
|
|
||||||
from .errors.workflow_service import DraftWorkflowDeletionError, WorkflowInUseError
|
from .errors.workflow_service import DraftWorkflowDeletionError, WorkflowInUseError
|
||||||
from .workflow_draft_variable_service import DraftVariableSaver, DraftVarLoader, WorkflowDraftVariableService
|
from .workflow_draft_variable_service import DraftVariableSaver, DraftVarLoader, WorkflowDraftVariableService
|
||||||
|
|
||||||
@ -1068,6 +1067,7 @@ def _fetch_memory_blocks(
|
|||||||
) -> Mapping[str, str]:
|
) -> Mapping[str, str]:
|
||||||
memory_blocks = {}
|
memory_blocks = {}
|
||||||
memory_block_specs = workflow.memory_blocks
|
memory_block_specs = workflow.memory_blocks
|
||||||
|
from services.chatflow_memory_service import ChatflowMemoryService
|
||||||
memories = ChatflowMemoryService.get_memories_by_specs(
|
memories = ChatflowMemoryService.get_memories_by_specs(
|
||||||
memory_block_specs=memory_block_specs,
|
memory_block_specs=memory_block_specs,
|
||||||
tenant_id=workflow.tenant_id,
|
tenant_id=workflow.tenant_id,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user