Revert "feat:conversation variable support file array" (#21273)

This commit is contained in:
QuantumGhost 2025-06-20 19:57:28 +08:00 • committed by GitHub
commit 3f9ced5374
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 77 additions and 90 deletions

View file

@ -101,8 +101,6 @@ def _build_variable_from_mapping(*, mapping: Mapping[str, Any], selector: Sequen
result = ArrayNumberVariable.model_validate(mapping)
case SegmentType.ARRAY_OBJECT if isinstance(value, list):
result = ArrayObjectVariable.model_validate(mapping)
case SegmentType.ARRAY_FILE if isinstance(value, list):
result = ArrayFileVariable.model_validate(mapping)
case _:
raise VariableError(f"not supported value type {value_type}")
if result.size > dify_config.MAX_VARIABLE_SIZE: