Skip to content

Dify API support #168

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Dify API support #168

wants to merge 2 commits into from

Conversation

Eric-Guo
Copy link

@Eric-Guo Eric-Guo commented May 14, 2025

dify = RubyLLM.context do |config|
  config.dify_api_key = ""
end
chat = dify.chat(model: 'dify-api', provider: :dify, assume_model_exists: true)
response = chat.ask "Hello world"
chat.ask "Hello world" do |chunk|
  print chunk.content
end

@Eric-Guo Eric-Guo marked this pull request as draft May 14, 2025 07:56
@Eric-Guo Eric-Guo force-pushed the dify_api branch 7 times, most recently from 6243b26 to 0b29032 Compare May 15, 2025 23:39
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.

1 participant