open_router_enhanced 1.0.0 → 1.1.0
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/CHANGELOG.md +15 -0
- data/Gemfile.lock +24 -25
- data/README.md +151 -1228
- data/docs/observability.md +3 -0
- data/docs/plugins.md +183 -0
- data/docs/streaming.md +18 -3
- data/docs/structured_outputs.md +466 -146
- data/lib/open_router/client.rb +50 -4
- data/lib/open_router/version.rb +1 -1
- data/lib/open_router.rb +6 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a260aa7386fa0f23bc13f963953db3b35f560b18bae0d39c93e4aa8c28562837
|
|
4
|
+
data.tar.gz: af442633daa38c99141fbda7b27d5708f101338c98375863fafd56425b1bdf21
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2eef8670903a1b78b17731ab9cc6b75db36d4894c7f1b2361e7978e910c7a5e48e3bdb490a681ace1043d83460a65ab79ba4a2084b1478ea37f0eae8d25d0c40
|
|
7
|
+
data.tar.gz: cd027929c19afd7fb18a042a9c097e5f052aaecf4567be972edd564158e56bd4d2e76feac6b68b4f89b27b6b2d70105e80c93bf659f5cba0862d30aa4dba877c
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [1.1.0] - 2025-12-24
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
- **Native Response Healing Plugin**: Automatic server-side JSON healing for structured outputs via OpenRouter's `response-healing` plugin (free, <1ms latency)
|
|
7
|
+
- **Plugins Parameter**: Support for OpenRouter plugins (`web-search`, `pdf-inputs`, `response-healing`) via new `plugins:` parameter
|
|
8
|
+
- **Prediction Parameter**: Latency optimization via `prediction:` parameter for predictable outputs
|
|
9
|
+
- **Auto Native Healing**: Automatically enables `response-healing` plugin when using structured outputs (configurable via `auto_native_healing` setting)
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
- Enhanced structured output workflow: native healing catches syntax errors server-side, client-side healing handles schema validation
|
|
13
|
+
|
|
14
|
+
### Configuration
|
|
15
|
+
- New `auto_native_healing` config option (default: `true`)
|
|
16
|
+
- Environment variable: `OPENROUTER_AUTO_NATIVE_HEALING`
|
|
17
|
+
|
|
3
18
|
## [1.0.0] - 2025-10-07
|
|
4
19
|
|
|
5
20
|
### Major Features
|
data/Gemfile.lock
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
open_router_enhanced (1.
|
|
5
|
-
activesupport (>= 6.0)
|
|
6
|
-
dotenv (>= 2)
|
|
7
|
-
faraday (>= 1)
|
|
8
|
-
faraday-multipart (>= 1)
|
|
4
|
+
open_router_enhanced (1.1.0)
|
|
5
|
+
activesupport (>= 6.0, < 9.0)
|
|
6
|
+
dotenv (>= 2.0, < 4.0)
|
|
7
|
+
faraday (>= 1.0, < 3.0)
|
|
8
|
+
faraday-multipart (>= 1.0, < 2.0)
|
|
9
9
|
json-schema (~> 4.0)
|
|
10
10
|
|
|
11
11
|
GEM
|
|
12
12
|
remote: https://rubygems.org/
|
|
13
13
|
specs:
|
|
14
|
-
activesupport (8.0.
|
|
14
|
+
activesupport (8.0.3)
|
|
15
15
|
base64
|
|
16
16
|
benchmark (>= 0.3)
|
|
17
17
|
bigdecimal
|
|
@@ -29,17 +29,17 @@ GEM
|
|
|
29
29
|
ast (2.4.3)
|
|
30
30
|
base64 (0.3.0)
|
|
31
31
|
benchmark (0.4.1)
|
|
32
|
-
bigdecimal (3.
|
|
32
|
+
bigdecimal (3.3.0)
|
|
33
33
|
coderay (1.1.3)
|
|
34
34
|
concurrent-ruby (1.3.5)
|
|
35
|
-
connection_pool (2.5.
|
|
35
|
+
connection_pool (2.5.4)
|
|
36
36
|
crack (1.0.0)
|
|
37
37
|
bigdecimal
|
|
38
38
|
rexml
|
|
39
39
|
diff-lcs (1.6.2)
|
|
40
40
|
dotenv (3.1.8)
|
|
41
41
|
drb (2.2.3)
|
|
42
|
-
faraday (2.
|
|
42
|
+
faraday (2.14.0)
|
|
43
43
|
faraday-net_http (>= 2.0, < 3.5)
|
|
44
44
|
json
|
|
45
45
|
logger
|
|
@@ -47,10 +47,10 @@ GEM
|
|
|
47
47
|
multipart-post (~> 2.0)
|
|
48
48
|
faraday-net_http (3.4.1)
|
|
49
49
|
net-http (>= 0.5.0)
|
|
50
|
-
hashdiff (1.2.
|
|
50
|
+
hashdiff (1.2.1)
|
|
51
51
|
i18n (1.14.7)
|
|
52
52
|
concurrent-ruby (~> 1.0)
|
|
53
|
-
json (2.
|
|
53
|
+
json (2.15.1)
|
|
54
54
|
json-schema (4.3.1)
|
|
55
55
|
addressable (>= 2.8)
|
|
56
56
|
language_server-protocol (3.17.0.5)
|
|
@@ -65,7 +65,7 @@ GEM
|
|
|
65
65
|
parser (3.3.9.0)
|
|
66
66
|
ast (~> 2.4.1)
|
|
67
67
|
racc
|
|
68
|
-
prism (1.
|
|
68
|
+
prism (1.5.1)
|
|
69
69
|
pry (0.15.2)
|
|
70
70
|
coderay (~> 1.1)
|
|
71
71
|
method_source (~> 1.0)
|
|
@@ -73,8 +73,8 @@ GEM
|
|
|
73
73
|
racc (1.8.1)
|
|
74
74
|
rainbow (3.1.1)
|
|
75
75
|
rake (13.3.0)
|
|
76
|
-
regexp_parser (2.11.
|
|
77
|
-
rexml (3.4.
|
|
76
|
+
regexp_parser (2.11.3)
|
|
77
|
+
rexml (3.4.4)
|
|
78
78
|
rspec (3.13.1)
|
|
79
79
|
rspec-core (~> 3.13.0)
|
|
80
80
|
rspec-expectations (~> 3.13.0)
|
|
@@ -87,8 +87,8 @@ GEM
|
|
|
87
87
|
rspec-mocks (3.13.5)
|
|
88
88
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
89
89
|
rspec-support (~> 3.13.0)
|
|
90
|
-
rspec-support (3.13.
|
|
91
|
-
rubocop (1.
|
|
90
|
+
rspec-support (3.13.6)
|
|
91
|
+
rubocop (1.81.1)
|
|
92
92
|
json (~> 2.3)
|
|
93
93
|
language_server-protocol (~> 3.17.0.2)
|
|
94
94
|
lint_roller (~> 1.1.0)
|
|
@@ -96,20 +96,20 @@ GEM
|
|
|
96
96
|
parser (>= 3.3.0.2)
|
|
97
97
|
rainbow (>= 2.2.2, < 4.0)
|
|
98
98
|
regexp_parser (>= 2.9.3, < 3.0)
|
|
99
|
-
rubocop-ast (>= 1.
|
|
99
|
+
rubocop-ast (>= 1.47.1, < 2.0)
|
|
100
100
|
ruby-progressbar (~> 1.7)
|
|
101
101
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
102
|
-
rubocop-ast (1.
|
|
102
|
+
rubocop-ast (1.47.1)
|
|
103
103
|
parser (>= 3.3.7.2)
|
|
104
104
|
prism (~> 1.4)
|
|
105
105
|
ruby-progressbar (1.13.0)
|
|
106
106
|
securerandom (0.4.1)
|
|
107
107
|
tzinfo (2.0.6)
|
|
108
108
|
concurrent-ruby (~> 1.0)
|
|
109
|
-
unicode-display_width (3.
|
|
110
|
-
unicode-emoji (~> 4.
|
|
111
|
-
unicode-emoji (4.0
|
|
112
|
-
uri (1.0.
|
|
109
|
+
unicode-display_width (3.2.0)
|
|
110
|
+
unicode-emoji (~> 4.1)
|
|
111
|
+
unicode-emoji (4.1.0)
|
|
112
|
+
uri (1.0.4)
|
|
113
113
|
vcr (6.3.1)
|
|
114
114
|
base64
|
|
115
115
|
webmock (3.25.1)
|
|
@@ -118,9 +118,8 @@ GEM
|
|
|
118
118
|
hashdiff (>= 0.4.0, < 2.0.0)
|
|
119
119
|
|
|
120
120
|
PLATFORMS
|
|
121
|
-
arm64-darwin-21
|
|
122
121
|
arm64-darwin-24
|
|
123
|
-
|
|
122
|
+
ruby
|
|
124
123
|
|
|
125
124
|
DEPENDENCIES
|
|
126
125
|
activesupport (>= 6.0)
|
|
@@ -135,4 +134,4 @@ DEPENDENCIES
|
|
|
135
134
|
webmock (~> 3.19)
|
|
136
135
|
|
|
137
136
|
BUNDLED WITH
|
|
138
|
-
2.
|
|
137
|
+
2.6.7
|