open_router_enhanced 1.2.3 → 1.2.5
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/lib/open_router/responses_tool_call.rb +5 -0
- data/lib/open_router/streaming_client.rb +2 -1
- data/lib/open_router/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 006c0d9fe0bb456345df1e75db430cf54943d85f34c55a931cf3490aa7e8ad45
|
|
4
|
+
data.tar.gz: 15953a9890fa76b4d039ff40357e11407bbd03fe44d731926327e65a909e7b94
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7048aec5f2abd698c35300fea40135c149ea90345c4e9897d14ac1114ba88a85b1b5ddcef77b3dfc1f01993c5dcb1dd922e011a3fb0162dfcdf1ab1b518de933
|
|
7
|
+
data.tar.gz: 859c1f7a15f59b11a530eb7eb460e36499782dda46eb76affdf74e63f474f9e40b56d24b4bea65fb6cb08b5438e0186f04b73aed99cf2dd6de2eeebc5a83691d
|
data/Gemfile.lock
CHANGED
|
@@ -25,6 +25,11 @@ module OpenRouter
|
|
|
25
25
|
@name
|
|
26
26
|
end
|
|
27
27
|
|
|
28
|
+
# Type is always "function" for tool calls (for consistency with ToolCall)
|
|
29
|
+
def type
|
|
30
|
+
"function"
|
|
31
|
+
end
|
|
32
|
+
|
|
28
33
|
# Build result for execute method (required by ToolCallBase)
|
|
29
34
|
def build_result(result, error = nil)
|
|
30
35
|
ResponsesToolResult.new(self, result, error)
|
|
@@ -49,7 +49,8 @@ module OpenRouter
|
|
|
49
49
|
|
|
50
50
|
begin
|
|
51
51
|
# Execute the streaming request
|
|
52
|
-
|
|
52
|
+
# Note: extras must be passed as a hash, not splatted, to match complete()'s signature
|
|
53
|
+
complete(messages, model: model, stream: stream_handler, extras: extras)
|
|
53
54
|
|
|
54
55
|
# Return accumulated response if requested
|
|
55
56
|
if accumulate_response && response_accumulator
|
data/lib/open_router/version.rb
CHANGED