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: a7653eb7f6a4812fb36284aa6e55e37731f76d940b07158325a03e12d996d969
4
- data.tar.gz: b4ef22d107598afabb138dfa39d65c5bcfdafaa487e3a686635cdff9dc98bdc0
3
+ metadata.gz: 6f5f6890969a89be17fe50cb2fd9ff8f863b185de80b6153837ef8a031edf293
4
+ data.tar.gz: f76b6b9d309d6336ea4650b8b27e9752a646a78d1a501d74537ffafae7752bc6
5
5
  SHA512:
6
- metadata.gz: 3b81998e0f918d3786799b25eb168c12faae940a25ff31d7245c0af096a09fa1d1e690cb450b3f9aea7d4f4981426490d5873adc086e56d96c677e3950f80a5f
7
- data.tar.gz: 9ec66dffcca0cd3f239418f13ec045ffca7e394631f32e859ca687bc0795fcfa415ffbefcf047424891d8253a0ea853504614be08a2ddc09638aee2a53a0cc3f
6
+ metadata.gz: b3eb67d238ea710d230a6a41404046864eab190dadf4341035441196fc7637c1c70ebe390806808a09d4ccef95cfd53e90e6e9bb33e7cc8f778b481c8a34ce83
7
+ data.tar.gz: e30a2fa6adb0293bd07e467b475df793a38bf271e9b48d41c7ff3d41a9f1ba2d9b791acb9f51582c7f3fbfe123e8a8592d9758bf7a384cc309762c94e97f8dc9
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Multiwoven
4
4
  module Integrations
5
- VERSION = "0.18.3"
5
+ VERSION = "0.18.5"
6
6
 
7
7
  ENABLED_SOURCES = %w[
8
8
  Snowflake
@@ -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.3
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-14 00:00:00.000000000 Z
11
+ date: 2025-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport