mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 09:28:04 +08:00
fix: update remaining core.file imports missed in previous commit
Made-with: Cursor
This commit is contained in:
@ -2,13 +2,13 @@
|
||||
|
||||
from unittest.mock import patch
|
||||
|
||||
from core.model_runtime.entities.message_entities import ImagePromptMessageContent
|
||||
from core.workflow.file import File, FileTransferMethod, FileType
|
||||
from core.workflow.file.file_manager import (
|
||||
_encode_file_ref,
|
||||
restore_multimodal_content,
|
||||
to_prompt_message_content,
|
||||
)
|
||||
from core.model_runtime.entities.message_entities import ImagePromptMessageContent
|
||||
|
||||
|
||||
class TestEncodeFileRef:
|
||||
|
||||
@ -4,7 +4,6 @@ Unit tests for sandbox file path detection and conversion.
|
||||
|
||||
import pytest
|
||||
|
||||
from core.workflow.file import File, FileTransferMethod, FileType
|
||||
from core.llm_generator.output_parser.file_ref import (
|
||||
FILE_PATH_DESCRIPTION_SUFFIX,
|
||||
FILE_PATH_FORMAT,
|
||||
@ -14,6 +13,7 @@ from core.llm_generator.output_parser.file_ref import (
|
||||
is_file_path_property,
|
||||
)
|
||||
from core.variables.segments import ArrayFileSegment, FileSegment
|
||||
from core.workflow.file import File, FileTransferMethod, FileType
|
||||
|
||||
|
||||
def _build_file(file_id: str) -> File:
|
||||
|
||||
Reference in New Issue
Block a user