ai-engine 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 02cef4cd33bb5b92f49695151fa4aa9e4004c9b5383745a977f3a9dfe0e46838
4
- data.tar.gz: 8f01799a009e77481da633e93c9e2a6a73101ca0c2c98004a34bdb6ecc42152b
3
+ metadata.gz: 0702cfaf1ad63d8a98a0b8acb67fdd0b1d3cf46320652f8f86df6b677af981ac
4
+ data.tar.gz: 1adacb8b8e2ef7da675077a79950ca342df9401a62780b8955c5b785f3d32538
5
5
  SHA512:
6
- metadata.gz: a4e1801c40ba227499902b2475cd5ff06097c3d51eb3d26f417bb62e1ca17da7786934815fa251298bd62b8d066a44a574aee9073f213d2b53e4d18423edc1eb
7
- data.tar.gz: 1b9960397d6bf0f234272aa21dc3780740f33de76dc39ce030d737a9cf45ec538c559d5401d362db5daafad528898a18fac86e7532a8f04f00471455c1750eb1
6
+ metadata.gz: b1270b59cdbe033e1147cc54ca9124145d3670363ec73b51854832983ae6f1d5dc88ead7ad726d99d641b4c7a9b0d2fe4eb5b236b7c6bdcb792d44c9f175fd77
7
+ data.tar.gz: 12e4f4c75a87e9f5b3c67312009906f981e01ebe340c2de3f6c8420a625bf2b7bddde7507bd9d0246747434d8ba95c5cd9cf6e4d6d1741cefdd15906d3774d6b
@@ -4,7 +4,7 @@ module AI
4
4
  extend ActiveSupport::Concern
5
5
 
6
6
  included do
7
- has_one :assistant, as: :assistable, class_name: "AI::Engine::Assistant"
7
+ has_one :assistant, as: :assistable, class_name: "AI::Engine::Assistant", dependent: :nullify
8
8
 
9
9
  before_create :create_openai_assistant
10
10
  before_update :update_openai_assistant
@@ -4,7 +4,7 @@ module AI
4
4
  extend ActiveSupport::Concern
5
5
 
6
6
  included do
7
- has_many :assistant_threads, as: :threadable, class_name: "AI::Engine::AssistantThread"
7
+ has_many :assistant_threads, as: :threadable, class_name: "AI::Engine::AssistantThread", dependent: :nullify
8
8
 
9
9
  def ai_engine_on_message_create(message:)
10
10
  # This is a hook for the AI Engine to notify the AssistantThreadtable that a Message has been updated.
@@ -1,5 +1,5 @@
1
1
  module AI
2
2
  module Engine
3
- VERSION = "0.4.0"
3
+ VERSION = "0.4.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ai-engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Rudall
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-16 00:00:00.000000000 Z
11
+ date: 2024-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-openai