Skip to content

Conversation

@Zigngit
Copy link
Contributor

@Zigngit Zigngit commented Sep 9, 2025

This PR introduces two main features to the Dify Ruby client, along with necessary dependency updates and bug fixes.

Features

  • File Upload:

    • Adds an upload method to DifyClient for uploading files using an IO object, handling multipart form data.
    • Adds a convenience method upload_file that accepts a file path for easier uploads.
  • Workflow Support:

    • Introduces a WorkflowClient for interacting with Dify workflows.
    • Implements run_workflow to execute a workflow and get_workflow to retrieve the results.

Fixes & Improvements

  • Dependency: Added the multipart-post gem to dify-client.gemspec to support file uploads.

@Zigngit
Copy link
Contributor Author

Zigngit commented Sep 9, 2025

me again.
I not sure about your progress on ruby_llm, but the PR link you give me previously crmne/ruby_llm#168 is closed and not merge into their code. So the ruby_llm does NOT support dify for the moment.

@Eric-Guo
Copy link
Collaborator

Eric-Guo commented Sep 9, 2025

So the ruby_llm does NOT support dify for the moment.

It's supported by me at least and used in production. I don't want to push a new name of gem to respect ruby-llm. maybe latter, as plugin, who know?

PR looks good to me, thought it's not ruby style.

@Eric-Guo Eric-Guo merged commit 7cf3b28 into langgenius:main Sep 9, 2025
1 check passed
Eric-Guo added a commit to thape-cn/web that referenced this pull request Sep 9, 2025
@Eric-Guo
Copy link
Collaborator

Eric-Guo commented Sep 9, 2025

@Zigngit please check 👆 commit to try dify_llm, another reason I push a gem is ruby_llm just introduce ifs repo which break the bundle install from repo....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants