multiwoven-integrations 0.18.3 → 0.18.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6f5f6890969a89be17fe50cb2fd9ff8f863b185de80b6153837ef8a031edf293
|
|
4
|
+
data.tar.gz: f76b6b9d309d6336ea4650b8b27e9752a646a78d1a501d74537ffafae7752bc6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b3eb67d238ea710d230a6a41404046864eab190dadf4341035441196fc7637c1c70ebe390806808a09d4ccef95cfd53e90e6e9bb33e7cc8f778b481c8a34ce83
|
|
7
|
+
data.tar.gz: e30a2fa6adb0293bd07e467b475df793a38bf271e9b48d41c7ff3d41a9f1ba2d9b791acb9f51582c7f3fbfe123e8a8592d9758bf7a384cc309762c94e97f8dc9
|
|
@@ -107,9 +107,10 @@ module Multiwoven::Integrations::Source
|
|
|
107
107
|
next if entry == "[DONE]"
|
|
108
108
|
|
|
109
109
|
data = parse_json(entry)
|
|
110
|
+
|
|
111
|
+
raise StandardError, "Error: #{data["error"]["message"]}" if data["error"] && data["error"]["message"]
|
|
112
|
+
|
|
110
113
|
yield [RecordMessage.new(data: data, emitted_at: Time.now.to_i).to_multiwoven_message] if block_given?
|
|
111
|
-
rescue StandardError => e
|
|
112
|
-
handle_exception(e, { context: "OPEN AI:PROCESS_STREAMING_RESPONSE:EXCEPTION", type: "error", entry: entry })
|
|
113
114
|
end
|
|
114
115
|
end
|
|
115
116
|
end
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"title": "Request Format",
|
|
40
40
|
"description": "Sample Request Format",
|
|
41
41
|
"type": "string",
|
|
42
|
+
"default": "{\"model\":\"gpt-4o-mini\", \"messages\":[{\"role\": \"user\", \"content\": \"What do you know about APIs?\"}], \"stream\": false}",
|
|
42
43
|
"x-request-format": true,
|
|
43
44
|
"order": 3
|
|
44
45
|
},
|
|
@@ -46,6 +47,7 @@
|
|
|
46
47
|
"title": "Response Format",
|
|
47
48
|
"description": "Sample Response Format",
|
|
48
49
|
"type": "string",
|
|
50
|
+
"default": "{\"choices\":[{\"index\": 0, \"delta\":{\"role\": \"assistant\", \"content\": \"APIs, or Application Programming Interfaces, are tools that allow different software applications to communicate with each other. They define a set of rules and protocols for building and interacting with software applications.\"}, \"finish_reason\": \"stop\"}]}",
|
|
49
51
|
"x-response-format": true,
|
|
50
52
|
"order": 4
|
|
51
53
|
}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: multiwoven-integrations
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.18.
|
|
4
|
+
version: 0.18.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Subin T P
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-01-
|
|
11
|
+
date: 2025-01-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|