[bug]工作流设置图片上传是非必选的,但是报错

校验过不去。应该是bug吧?

可能贴一下你的 DSL ,我刚才在 cloud 里面尝试过,并不会出现这种情况。

下面是我的 DSL

app:
  description: ''
  icon: 🤖
  icon_background: '#FFEAD5'
  mode: workflow
  name: Optional file input
  use_icon_as_answer_icon: false
dependencies: []
kind: app
version: 0.5.0
workflow:
  conversation_variables: []
  environment_variables: []
  features:
    file_upload:
      allowed_file_extensions:
      - .JPG
      - .JPEG
      - .PNG
      - .GIF
      - .WEBP
      - .SVG
      allowed_file_types:
      - image
      allowed_file_upload_methods:
      - local_file
      - remote_url
      enabled: false
      fileUploadConfig:
        audio_file_size_limit: 50
        batch_count_limit: 5
        file_size_limit: 15
        image_file_batch_limit: 10
        image_file_size_limit: 10
        single_chunk_attachment_limit: 10
        video_file_size_limit: 100
        workflow_file_upload_limit: 10
      image:
        enabled: false
        number_limits: 3
        transfer_methods:
        - local_file
        - remote_url
      number_limits: 3
    opening_statement: ''
    retriever_resource:
      enabled: true
    sensitive_word_avoidance:
      enabled: false
    speech_to_text:
      enabled: false
    suggested_questions: []
    suggested_questions_after_answer:
      enabled: false
    text_to_speech:
      enabled: false
      language: ''
      voice: ''
  graph:
    edges:
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: start
        targetType: if-else
      id: 1765898295142-source-1765899115775-target
      source: '1765898295142'
      sourceHandle: source
      target: '1765899115775'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: if-else
        targetType: end
      id: 1765899115775-true-1765899136390-target
      source: '1765899115775'
      sourceHandle: 'true'
      target: '1765899136390'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: if-else
        targetType: end
      id: 1765899115775-false-1765899145914-target
      source: '1765899115775'
      sourceHandle: 'false'
      target: '1765899145914'
      targetHandle: target
      type: custom
      zIndex: 0
    nodes:
    - data:
        selected: false
        title: User Input
        type: start
        variables:
        - allowed_file_extensions: []
          allowed_file_types:
          - image
          allowed_file_upload_methods:
          - local_file
          - remote_url
          default: ''
          hint: ''
          label: file
          max_length: 48
          options: []
          placeholder: ''
          required: false
          type: file
          variable: file
        - default: ''
          hint: ''
          label: txt
          max_length: 48
          options: []
          placeholder: ''
          required: true
          type: text-input
          variable: txt
      height: 135
      id: '1765898295142'
      position:
        x: -1.4285714285714448
        y: 8
      positionAbsolute:
        x: -1.4285714285714448
        y: 8
      selected: true
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
    - data:
        cases:
        - case_id: 'true'
          conditions:
          - comparison_operator: exists
            id: bc533ed0-e896-4475-bd8d-461b113a38aa
            value: ''
            varType: file
            variable_selector:
            - '1765898295142'
            - file
          id: 'true'
          logical_operator: and
        selected: false
        title: IF/ELSE
        type: if-else
      height: 124
      id: '1765899115775'
      position:
        x: 342
        y: 0
      positionAbsolute:
        x: 342
        y: 0
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
    - data:
        outputs:
        - value_selector:
          - sys
          - user_id
          value_type: string
          variable: user_id
        selected: false
        title: Output 2
        type: end
      height: 89
      id: '1765899136390'
      position:
        x: 704
        y: 29
      positionAbsolute:
        x: 704
        y: 29
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
    - data:
        outputs:
        - value_selector:
          - sys
          - app_id
          value_type: string
          variable: app_id
        selected: false
        title: Output 3
        type: end
      height: 89
      id: '1765899145914'
      position:
        x: 704
        y: 198
      positionAbsolute:
        x: 704
        y: 198
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
    viewport:
      x: 289.39947770960856
      y: 300.52233860413264
      zoom: 0.6714848835276849
  rag_pipeline_variables: []

image

ファイルをアップロードしないでください。

image

これはクラウド版ですか、それともセルフプロビジョニング版ですか?

自部署版本的 1111111111111111111111111111111111111

This has been fixed in the latest version.