Class: LlmCostTracker::Generators::ReconciliationGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- LlmCostTracker::Generators::ReconciliationGenerator
- Includes:
- ActiveRecord::Generators::Migration
- Defined in:
- lib/llm_cost_tracker/generators/llm_cost_tracker/reconciliation_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_migration_file ⇒ Object
15 16 17 18 19 20 |
# File 'lib/llm_cost_tracker/generators/llm_cost_tracker/reconciliation_generator.rb', line 15 def create_migration_file migration_template( "create_llm_cost_tracker_reconciliation.rb.erb", "db/migrate/create_llm_cost_tracker_reconciliation.rb" ) end |
#warn_about_admin_keys ⇒ Object
22 23 24 25 |
# File 'lib/llm_cost_tracker/generators/llm_cost_tracker/reconciliation_generator.rb', line 22 def warn_about_admin_keys say "Reconciliation requires admin/org-level API keys (OpenAI sk-admin-..., Anthropic admin keys, " \ "GCP billing.viewer service accounts). Do NOT use the runtime inference key.", :yellow end |