From 4ba650c7aa993122df8bfda3d654329a235572c0 Mon Sep 17 00:00:00 2001 From: lixulun Date: Tue, 31 Mar 2026 17:15:48 +0800 Subject: [PATCH] add ruby_llm support - Check ruby_llm gem in version check script - Add ruby_llm_config.rb with Aliyun DashScope configuration --- , | 1 + ruby_llm_config.rb | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 ruby_llm_config.rb diff --git a/, b/, index 07e4de4..92fe9f8 100755 --- a/, +++ b/, @@ -29,6 +29,7 @@ echo "pipx:" $(command -v pipx || error "not found") echo "nodejs:": $(command -v node || error "not found") echo "pnpm:" $(command -v pnpm || error "not found") echo "go:" $(command -v go || error "not found") +echo "ruby_llm:" $(gem list -i '^ruby_llm$') echo "" echo "mise:" $(command -v mise || error "not found") diff --git a/ruby_llm_config.rb b/ruby_llm_config.rb new file mode 100644 index 0000000..0449dd3 --- /dev/null +++ b/ruby_llm_config.rb @@ -0,0 +1,6 @@ +require 'ruby_llm' + +RubyLLM.configure do |config| + config.openai_api_key = ENV['ALIYUN_AI_API_KEY'] + config.openai_api_base = "https://dashscope.aliyuncs.com/compatible-mode/v1" +end