open_ai_bot 0.3.7 → 0.3.9

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: 0522c533c52a78ca5524ce185ccd858e3534369d854d3049d77c02bc8a7810cc
4
- data.tar.gz: c2fd62a33367bba69fbf6b14b26c17521ffbbc4ce1d8ace5b6d96572c25da4f7
3
+ metadata.gz: 85315a850955b5c1a17739f3aa458d37755088f994f42685cdf29fc76042e6f0
4
+ data.tar.gz: c42794681953b60a19c5c336542352c7b062e405852bd05ab8f69622b7163546
5
5
  SHA512:
6
- metadata.gz: 436d2fe4a71f0b626cc147d4a868af91c46c7f7bca9c1a11440995e0924947032144f876926d2e143522b5cc06e8f8bb748d1ec6b8152b610f1dfb95cc23d17f
7
- data.tar.gz: ff27d05381553aecf54eaddfd5b5bb4d1cbe7e3187f4eb4260a742efd7d08517c331f0fec2cb184077f1c11be6a332ac5fd4f053812e8bcc6535b3b509978ab0
6
+ metadata.gz: 307099e4668a3525a73d463b23f59671ef1e3caab88eda763a054c1c83ada3aa71098a1f5c15adc1849a327830bc9e0a0d8f837af41f9be2e25cce716eeac217
7
+ data.tar.gz: f622e67e57b4451466bbac0599d5ac26b982b1f48c88a7e3cf7ebdeab081cb25d67e5432676649ab30dde3bebba8fdfc13c7ebd8df7987ca78d29ba1bba8c5fb
data/Gemfile.lock CHANGED
@@ -1,34 +1,38 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- addressable (2.8.6)
5
- public_suffix (>= 2.0.2, < 6.0)
6
- async (2.12.0)
7
- console (~> 1.25, >= 1.25.2)
4
+ addressable (2.8.7)
5
+ public_suffix (>= 2.0.2, < 7.0)
6
+ async (2.25.0)
7
+ console (~> 1.29)
8
8
  fiber-annotation
9
- io-event (~> 1.6)
10
- bigdecimal (3.1.8)
11
- concurrent-ruby (1.3.2)
12
- console (1.25.2)
9
+ io-event (~> 1.11)
10
+ metrics (~> 0.12)
11
+ traces (~> 0.15)
12
+ bigdecimal (3.2.2)
13
+ concurrent-ruby (1.3.5)
14
+ console (1.31.0)
13
15
  fiber-annotation
14
16
  fiber-local (~> 1.1)
15
17
  json
16
18
  down (5.4.2)
17
19
  addressable (~> 2.8)
18
- dry-core (1.0.1)
20
+ dry-core (1.1.0)
19
21
  concurrent-ruby (~> 1.0)
22
+ logger
20
23
  zeitwerk (~> 2.6)
21
- dry-inflector (1.0.0)
22
- dry-logic (1.5.0)
24
+ dry-inflector (1.2.0)
25
+ dry-logic (1.6.0)
26
+ bigdecimal
23
27
  concurrent-ruby (~> 1.0)
24
- dry-core (~> 1.0, < 2)
28
+ dry-core (~> 1.1)
25
29
  zeitwerk (~> 2.6)
26
- dry-struct (1.6.0)
27
- dry-core (~> 1.0, < 2)
28
- dry-types (>= 1.7, < 2)
30
+ dry-struct (1.8.0)
31
+ dry-core (~> 1.1)
32
+ dry-types (~> 1.8, >= 1.8.2)
29
33
  ice_nine (~> 0.11)
30
34
  zeitwerk (~> 2.6)
31
- dry-types (1.7.2)
35
+ dry-types (1.8.3)
32
36
  bigdecimal (~> 3.0)
33
37
  concurrent-ruby (~> 1.0)
34
38
  dry-core (~> 1.0)
@@ -40,36 +44,38 @@ GEM
40
44
  faraday-net_http (>= 2.0, < 3.5)
41
45
  json
42
46
  logger
43
- faraday-multipart (1.1.0)
47
+ faraday-multipart (1.1.1)
44
48
  multipart-post (~> 2.0)
45
49
  faraday-net_http (3.4.1)
46
50
  net-http (>= 0.5.0)
47
51
  fiber-annotation (0.2.0)
48
52
  fiber-local (1.1.0)
49
53
  fiber-storage
50
- fiber-storage (0.1.1)
54
+ fiber-storage (1.0.1)
51
55
  ice_nine (0.11.2)
52
- io-event (1.6.0)
56
+ io-event (1.11.0)
53
57
  json (2.12.2)
54
58
  logger (1.7.0)
59
+ metrics (0.12.2)
55
60
  multipart-post (2.4.1)
56
61
  net-http (0.6.0)
57
62
  uri
58
- public_suffix (5.0.5)
63
+ public_suffix (6.0.2)
59
64
  ruby-openai (8.1.0)
60
65
  event_stream_parser (>= 0.3.0, < 2.0.0)
61
66
  faraday (>= 1)
62
67
  faraday-multipart (>= 1)
63
- rubydium (0.4.1)
68
+ rubydium (0.4.8)
64
69
  async (~> 2.3)
65
- telegram-bot-ruby (~> 1.0.0)
66
- telegram-bot-ruby (1.0.0)
70
+ telegram-bot-ruby (~> 2.2)
71
+ telegram-bot-ruby (2.4.0)
67
72
  dry-struct (~> 1.6)
68
73
  faraday (~> 2.0)
69
74
  faraday-multipart (~> 1.0)
70
75
  zeitwerk (~> 2.6)
76
+ traces (0.15.2)
71
77
  uri (1.0.3)
72
- zeitwerk (2.6.15)
78
+ zeitwerk (2.7.3)
73
79
 
74
80
  PLATFORMS
75
81
  ruby
data/lib/config_menu.rb CHANGED
@@ -4,8 +4,8 @@ module ConfigMenu
4
4
  def self.included(base)
5
5
  base.on_every_message :handle_config_query
6
6
  base.on_command "/config" do
7
- $original_config_message_id = @message.id
8
- $config_message_id = reply("clicky buttons:", reply_markup: config_menu).dig("result", "message_id")
7
+ $original_config_message_id = @msg.id
8
+ $config_message_id = reply("clicky buttons:", reply_markup: config_menu).message_id
9
9
  end
10
10
  end
11
11
 
@@ -157,7 +157,7 @@ module OpenAI
157
157
  tokens_text = tokens_info[:info]
158
158
  tokens_text = '' if config.show_price_info == false
159
159
 
160
- id = reply(text + tokens_text).dig("result", "message_id")
160
+ id = reply(text + tokens_text).message_id
161
161
 
162
162
  bot_message = BotMessage.new(
163
163
  id: id,
data/open_ai_bot.gemspec CHANGED
@@ -8,7 +8,7 @@ require_relative "lib/ext/in"
8
8
 
9
9
  Gem::Specification.new do |spec|
10
10
  spec.name = "open_ai_bot"
11
- spec.version = "0.3.7"
11
+ spec.version = "0.3.9"
12
12
  spec.authors = ["bulgakke"]
13
13
  spec.email = ["vvp835@yandex.ru"]
14
14
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: open_ai_bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - bulgakke