Module: AIGit::Commands::Config
- Defined in:
- lib/ai_git/commands/config.rb
Overview
ai_git config — print the resolved provider configuration so users can
see exactly which provider, model, URL and key will be used.
Class Method Summary collapse
Class Method Details
.call(_argv = []) ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/ai_git/commands/config.rb', line 14 def call(_argv = []) cfg = AIGit::Config AIGit::UI.heading("ai_git configuration") AIGit::UI.kv("Provider", cfg.provider) AIGit::UI.kv("Model", cfg.model_name) AIGit::UI.kv("Base URL", cfg.base_url) AIGit::UI.kv("Endpoint", cfg.endpoint) AIGit::UI.kv("Read timeout", "#{AIGit::AIClient::READ_TIMEOUT_SECONDS}s") end |