add ruby_llm support

- Check ruby_llm gem in version check script
- Add ruby_llm_config.rb with Aliyun DashScope configuration
This commit is contained in:
2026-03-31 17:15:48 +08:00
parent e8b50e7b5e
commit 4ba650c7aa
2 changed files with 7 additions and 0 deletions

1
,
View File

@@ -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")

6
ruby_llm_config.rb Normal file
View File

@@ -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