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: de50b39450657d77806041a0073182e241854dec654df89dafffb1602d7cda6c
4
- data.tar.gz: e0e5f774586fafcbd4a338b329f59f4b8d099dd72fa9b71e971088c623594abf
3
+ metadata.gz: 72a2c42a9020a74eae5198be30e88bfa3a91461a0b836322faae6adbb8132e9d
4
+ data.tar.gz: 32deefe742f5eda9c4fa6984a5cc343991541bfc9ac14eaf4f999af29919974c
5
5
  SHA512:
6
- metadata.gz: 23b48547f09522817cea08727abdfe32985eae70b456c738882cf8a10467c480a0274263fea8d624456a5aa1d600965048f2447df859c70097edd091eaf96e48
7
- data.tar.gz: 680bb8388b484a375ed29dc218f4ad06211cff5d35b6f1567ff910b267adcbd8126a9bec122eb4aa1e72b8e3b3f8a580de50ee5ae6d5e2ca921e6acd48f4b443
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
 
@@ -3,7 +3,7 @@
3
3
  module RubyConversations
4
4
  MAJOR = 1
5
5
  MINOR = 1
6
- PATCH = 4
6
+ PATCH = 6
7
7
 
8
8
  VERSION = "#{RubyConversations::MAJOR}.#{RubyConversations::MINOR}.#{RubyConversations::PATCH}".freeze
9
9
  end
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
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-06 00:00:00.000000000 Z
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: '1.1'
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: '1.1'
82
+ version: 1.3.0rc1
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: strongmind-auth
85
85
  requirement: !ruby/object:Gem::Requirement