ruby_conversations 1.1.4 → 1.1.6
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: 72a2c42a9020a74eae5198be30e88bfa3a91461a0b836322faae6adbb8132e9d
|
4
|
+
data.tar.gz: 32deefe742f5eda9c4fa6984a5cc343991541bfc9ac14eaf4f999af29919974c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8f1ff92c04b3a206e40ab067b872af65436d91384fb0304f7423866f3e08b5936cabc19331ddab55dc12840af4af893e501063e42328bd43de69b5f87ec9ada
|
7
|
+
data.tar.gz: 4b5af4e32ae1783dac4ca93c907d186ef7c4e3decde3d2978734f4dc9169ed0c3fdd004ca5b38766da6850f6019fe081cb4360944ea14d91d493f7e73f45bc0d
|
@@ -13,18 +13,19 @@ module RubyConversations
|
|
13
13
|
include RubyConversations::Concerns::MessageValidation
|
14
14
|
include RubyConversations::Concerns::MessageProcessing
|
15
15
|
|
16
|
-
# Define attributes needed for API interaction & local state
|
17
16
|
attr_accessor :id, :conversationable_type, :conversationable_id, :conversationable,
|
18
17
|
:messages, :tool, :tools, :created_at, :updated_at
|
19
18
|
|
20
|
-
# Validations
|
21
19
|
validates :messages, presence: { message: 'At least one message is required' }, on: :update
|
22
20
|
validate :validate_messages
|
23
21
|
|
24
|
-
# Initialization
|
25
22
|
def initialize(attributes = {})
|
26
23
|
@chat = attributes.delete(:chat)
|
24
|
+
@model_identifier = attributes.delete(:model_identifier)
|
25
|
+
@provider = attributes.delete(:provider)
|
27
26
|
@messages = []
|
27
|
+
|
28
|
+
configure_llm_credentials
|
28
29
|
super
|
29
30
|
end
|
30
31
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_conversations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Shippy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-05-
|
11
|
+
date: 2025-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 1.3.0rc1
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 1.3.0rc1
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: strongmind-auth
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|