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:
1
,
1
,
@@ -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
6
ruby_llm_config.rb
Normal 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
|
||||
Reference in New Issue
Block a user