访问被拒绝,你可能没有权限或未登录。

RubyTuesday [上海][2025 年 5 月 27 日] Ruby 线下聚会:RubyLLM & Dify

xiaoronglv · May 21, 2025 · Last by ericguo replied at May 21, 2025 · 108 hits

时间:2025 年 5 月 27 日 (周二) 19:45 - 21:15(注意时间比之前的晚了半个小时,因为大家反馈现在太卷下班要卷一下)

地点:上海市静安区凤阳路 707 号 KYMS 汇银大厦 9 楼演播厅 (地铁 2 号线南京西路地铁站)

主题 & 讲师

讲师:Eric

主题:智能合同关键信息抽取,使用 dify 实现自动化

参会可以获得的礼品

  1. Jetbrain 兑换券,可以兑换 Jetbrain 的一个产品一年的使用。只有 1 个 license,抽奖决定。

在线拨入

无法肉身参加的同学,可以通过 Google Meeting 拨入。

Video call link: https://meet.google.com/kyk-hrcd-yho

感谢

感谢 Fariaedu 赞助场地。

工作机会 Jobs & Opportunities

todo

一个礼拜,希望到时候这个RubyLLM 支持 Dify 的 PR 能合并吧。。。

def self.dify_answer(question)
-  client = ::ChatClient.new(Rails.application.credentials.dify_api_key!, Rails.application.credentials.dify_base_url!)
-  res = client.create_chat_message({}, question, "cybros_user_#{Current.user.id}")
-  JSON.parse(res.body).dig('answer')
+  dify = RubyLLM.chat(model: 'dify-api', provider: :dify, assume_model_exists: true)
+  res = dify.ask question
+  res.content
end
You need to Sign in before reply, if you don't have an account, please Sign up first.