mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-09 19:06:51 +08:00
fix(llm_node): Ignore file if not supported. (#11114)
This commit is contained in:
@@ -67,7 +67,6 @@ from .entities import (
|
|||||||
ModelConfig,
|
ModelConfig,
|
||||||
)
|
)
|
||||||
from .exc import (
|
from .exc import (
|
||||||
FileTypeNotSupportError,
|
|
||||||
InvalidContextStructureError,
|
InvalidContextStructureError,
|
||||||
InvalidVariableTypeError,
|
InvalidVariableTypeError,
|
||||||
LLMModeRequiredError,
|
LLMModeRequiredError,
|
||||||
@@ -676,7 +675,7 @@ class LLMNode(BaseNode[LLMNodeData]):
|
|||||||
and ModelFeature.AUDIO not in model_config.model_schema.features
|
and ModelFeature.AUDIO not in model_config.model_schema.features
|
||||||
)
|
)
|
||||||
):
|
):
|
||||||
raise FileTypeNotSupportError(type_name=content_item.type)
|
continue
|
||||||
prompt_message_content.append(content_item)
|
prompt_message_content.append(content_item)
|
||||||
if len(prompt_message_content) == 1 and prompt_message_content[0].type == PromptMessageContentType.TEXT:
|
if len(prompt_message_content) == 1 and prompt_message_content[0].type == PromptMessageContentType.TEXT:
|
||||||
prompt_message.content = prompt_message_content[0].data
|
prompt_message.content = prompt_message_content[0].data
|
||||||
|
|||||||
Reference in New Issue
Block a user