openrouter_client 0.1.0 → 0.1.1
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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -0
- data/lib/openrouter/version.rb +1 -1
- data/openrouter_client.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1dfa50003cbe411f1e237d47c2872e053bbe649253abe52df64da017071bf791
|
|
4
|
+
data.tar.gz: 6279dcb4868bf470016c0df6cfe45fd3c5ebc19284cb7eb54d8d8d6c6ca78bb1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 20fa68b2374b7be8f14b0833fa794d3f2d52f0aea344a2707ab9d3330a6a8c43da36e2f7d27681af2a8a2a8ecfeb926bdb70b7f86819e904b38b76aa1c4f2156
|
|
7
|
+
data.tar.gz: ecc2aecf1224b2c5ddc1207780ebbc9014a07fd568969d2fda199cdfeaa46ea93ec8badbdacfca74cb6357c3f98ed171e144f584aef2782bfdf50c811ddab100
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -23,6 +23,8 @@ gem install openrouter_client
|
|
|
23
23
|
Configure the client once at boot (e.g., in Rails an initializer) using `OpenRouter.configure`.
|
|
24
24
|
|
|
25
25
|
```ruby
|
|
26
|
+
require "openrouter"
|
|
27
|
+
|
|
26
28
|
OpenRouter.configure do |config|
|
|
27
29
|
config.api_key = "your-key" # Optional. Defaults to ENV["OPENROUTER_API_KEY"]
|
|
28
30
|
config.api_base = "https://openrouter.ai/api/v1" # Optional (default)
|
data/lib/openrouter/version.rb
CHANGED
data/openrouter_client.gemspec
CHANGED
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
|
10
10
|
|
|
11
11
|
spec.summary = "Ruby client for OpenRouter API."
|
|
12
12
|
spec.description = "A comprehensive Ruby client for the OpenRouter API, providing access to hundreds of AI models through a unified interface."
|
|
13
|
-
spec.homepage = "https://github.com/851-labs/
|
|
13
|
+
spec.homepage = "https://github.com/851-labs/openrouter"
|
|
14
14
|
spec.required_ruby_version = ">= 3.3.0"
|
|
15
15
|
|
|
16
16
|
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: openrouter_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dylan Player
|
|
@@ -60,14 +60,14 @@ files:
|
|
|
60
60
|
- rbi/openrouter/version.rbi
|
|
61
61
|
- sorbet/config
|
|
62
62
|
- sorbet/rbi/.gitignore
|
|
63
|
-
homepage: https://github.com/851-labs/
|
|
63
|
+
homepage: https://github.com/851-labs/openrouter
|
|
64
64
|
licenses:
|
|
65
65
|
- MIT
|
|
66
66
|
metadata:
|
|
67
67
|
allowed_push_host: https://rubygems.org
|
|
68
|
-
homepage_uri: https://github.com/851-labs/
|
|
69
|
-
source_code_uri: https://github.com/851-labs/
|
|
70
|
-
changelog_uri: https://github.com/851-labs/
|
|
68
|
+
homepage_uri: https://github.com/851-labs/openrouter
|
|
69
|
+
source_code_uri: https://github.com/851-labs/openrouter
|
|
70
|
+
changelog_uri: https://github.com/851-labs/openrouter/blob/main/CHANGELOG.md
|
|
71
71
|
rubygems_mfa_required: 'true'
|
|
72
72
|
rdoc_options: []
|
|
73
73
|
require_paths:
|