Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: andyit/dify-java-client
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: imfangs/dify-java-client
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 13 commits
  • 21 files changed
  • 4 contributors

Commits on Jan 7, 2026

  1. fix: 添加conversation_id字段到BaseWorkflowEvent以修复issue imfangs#145

    ## 问题描述
    Chatflow的"workflow_started"、"node_started"等workflow事件实体类缺少conversation_id字段。
    直接调用dify的HTTP接口能够返回conversation_id,但SDK中只有BaseMessageEvent的子类包含该字段,
    而BaseWorkflowEvent的子类缺失,导致前几个SSE事件无法获取conversation_id。
    
    ## 修复内容
    - 在BaseWorkflowEvent基类中添加conversation_id字段,使其与BaseMessageEvent保持一致
    - 所有继承BaseWorkflowEvent的事件类(WorkflowStartedEvent, NodeStartedEvent, NodeFinishedEvent等)
      现在都可以获取conversation_id
    
    ## 验证
    - 已验证Dify HTTP API在chatflow模式下返回的workflow事件确实包含conversation_id字段
    - 代码成功编译通过(mvn clean compile)
    - 与BaseMessageEvent保持一致的设计
    
    Fixes imfangs#145
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    
    Co-Authored-By: Claude <[email protected]>
    imfangs and claude committed Jan 7, 2026
    Configuration menu
    Copy the full SHA
    4b97473 View commit details
    Browse the repository at this point in the history
  2. fix: Change builtInMetadata return type from String to SimpleResponse

    Fixes imfangs#146
    
    The builtInMetadata API endpoint returns a JSON object ({"result": "success"})
    instead of a plain string. This was causing a MismatchedInputException:
    "Cannot deserialize value of type java.lang.String from Object value".
    
    Changed the return type from String to SimpleResponse in both the interface
    and implementation to properly handle the API response.
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    
    Co-Authored-By: Claude <[email protected]>
    imfangs and claude committed Jan 7, 2026
    Configuration menu
    Copy the full SHA
    d92367b View commit details
    Browse the repository at this point in the history
  3. Merge pull request imfangs#148 from imfangs/fix/issue-146-builtInMeta…

    …data-response-type
    
    fix: Change builtInMetadata return type from String to SimpleResponse
    imfangs authored Jan 7, 2026
    Configuration menu
    Copy the full SHA
    c8c7322 View commit details
    Browse the repository at this point in the history
  4. chore(release): bump version to 1.2.4

    - Fix builtInMetadata return type from String to SimpleResponse (imfangs#146)
    - Add conversation_id field to BaseWorkflowEvent (imfangs#145)
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    
    Co-Authored-By: Claude <[email protected]>
    imfangs and claude committed Jan 7, 2026
    Configuration menu
    Copy the full SHA
    c682bc7 View commit details
    Browse the repository at this point in the history
  5. fix: Update test to use SimpleResponse for builtInMetadata

    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    
    Co-Authored-By: Claude <[email protected]>
    imfangs and claude committed Jan 7, 2026
    Configuration menu
    Copy the full SHA
    b1b5116 View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2026

  1. Configuration menu
    Copy the full SHA
    f2ba633 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0a6c0a6 View commit details
    Browse the repository at this point in the history

Commits on Jan 30, 2026

  1. chore(release): bump version to 1.2.5

    - add workflow_id support for Chatflow requests (imfangs#151)
    - improve workflow event compatibility for workflow_id
    - build: ensure Lombok annotation processing on newer JDKs
    imfangs committed Jan 30, 2026
    Configuration menu
    Copy the full SHA
    4484beb View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2026

  1. fix: add node_retry event and text_to_speech parameter (imfangs#157, i…

    …mfangs#158)
    
    - Add node_retry event support for Workflow and Chatflow streaming
    - Add text_to_speech, more_like_this, sensitive_word_avoidance to AppParametersResponse
    - Add workflow_file_upload_limit to SystemParameters
    - Bump version to 1.2.6
    imfangs committed Apr 8, 2026
    Configuration menu
    Copy the full SHA
    8d815cc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d6d7adf View commit details
    Browse the repository at this point in the history

Commits on May 7, 2026

  1. refactor: optimize streaming response terminal event handling (imfang…

    …s#161)
    
    - 引入 CHAT_TERMINAL_EVENTS 和 WORKFLOW_TERMINAL_EVENTS 常量集合
    - 修改 processStreamLine 方法参数以支持动态终止事件判断
    - 为聊天、补全、工作流等不同场景配置相应的终止事件类型
    - 重构事件处理逻辑,统一通过枚举集合判断流式读取终止条件
    - 移除硬编码的特定事件判断,提高代码可维护性
    - 优化不同 Dify 应用类型的流式响应处理策略
    kongweiguang authored May 7, 2026
    Configuration menu
    Copy the full SHA
    18848bf View commit details
    Browse the repository at this point in the history
  2. feat: add missing fields to DetailedDocumentResponse (imfangs#160)

    Add doc_type, doc_metadata, summary_index_status, and need_summary fields
    to align with the latest Dify API response for document detail endpoint.
    imfangs committed May 7, 2026
    Configuration menu
    Copy the full SHA
    9473156 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bcecca3 View commit details
    Browse the repository at this point in the history
Loading