sage-rails 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cb2c81d99ac3d6dcaa9640c0b5c9b3d15612d60d089aad3c7ee889b9b6ca9d09
4
- data.tar.gz: 4315483545ae23e66765121fa02a14d6259e98016a934d7e4953e67abfc1bb80
3
+ metadata.gz: 8d2b97b78686051a12d330c24039849f41cbd889c2039365e87774576d2a1ac9
4
+ data.tar.gz: c5562cfa797cc19749359f4ca889653cbe33b9159ddfac70221df43a7e928c8c
5
5
  SHA512:
6
- metadata.gz: 2d4f2a8b7e31ab1a692a26c0a72f29e8c56e526d578170533999c307bb7769ab9142ccc9fab544700bda31e4ed38ea635f3b7e3d321db3d31cad24361a9f6e80
7
- data.tar.gz: 6b0c40cd4407780316c5b955ce45d8738b7f378a5013adbec3e97e938762be95c1d4f75079c91a88c3a7441ab3ad701933b76f8985723c5a29fa6f99895816ff
6
+ metadata.gz: c50a7df5ab0b1786ee56b4a2042761b5da2c6d80639f0231e05c909301993f7d0569559446a7cdee8bb2b135c6de2cabfdba0611c601f77ed859b1ac5b0e9624
7
+ data.tar.gz: 6e7c54a17bf338115923d833800486558c5a3d6be0515e77f7c29a44c07aae1dae0690a361419d8cf5cf0cb8c2a5f60dad34378b59696090cd6619f8d05d3be9
data/README.md CHANGED
@@ -11,7 +11,7 @@ Sage is a Rails engine built on top of the excellent [Blazer](https://github.com
11
11
  Add Sage to your application's Gemfile:
12
12
 
13
13
  ```ruby
14
- gem "sage-rails"
14
+ gem "sage-rails", require: 'sage'
15
15
  ```
16
16
 
17
17
  Run bundle install:
@@ -1,22 +1,8 @@
1
1
  Sage.configure do |config|
2
2
  # Configure the AI provider (options: :anthropic, :openai)
3
3
  config.provider = :anthropic
4
+ # config.provider = :openai
4
5
 
5
- # API Key Configuration
6
- # Priority order:
7
- # 1. Rails credentials: rails credentials:edit
8
- # anthropic:
9
- # api_key: your_key_here
10
- # openai:
11
- # api_key: your_key_here
12
- # 2. .env file: ANTHROPIC_API_KEY=your_key_here or OPENAI_API_KEY=your_key_here
13
- # 3. Direct configuration (not recommended for production):
14
- # config.anthropic_api_key = "your_key_here"
15
- # config.open_ai_key = "your_key_here"
16
-
17
- # Model selection (optional)
18
- # For Anthropic (defaults to claude-3-opus-20240229):
19
- # config.anthropic_model = "claude-3-sonnet-20240229"
20
- # For OpenAI (defaults to gpt-4):
21
- # config.open_ai_model = "gpt-3.5-turbo"
6
+ config.anthropic_api_key = ENV["ANTHROPIC_API_KEY"]
7
+ # config.openai_api_key = ENV["OPENAI_API_KEY"]
22
8
  end
data/lib/sage/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Sage
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sage-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Jones