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 +4 -4
- data/Gemfile.lock +30 -24
- data/lib/config_menu.rb +2 -2
- data/lib/open_ai/chat_gpt.rb +1 -1
- data/open_ai_bot.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85315a850955b5c1a17739f3aa458d37755088f994f42685cdf29fc76042e6f0
|
4
|
+
data.tar.gz: c42794681953b60a19c5c336542352c7b062e405852bd05ab8f69622b7163546
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
5
|
-
public_suffix (>= 2.0.2, <
|
6
|
-
async (2.
|
7
|
-
console (~> 1.
|
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.
|
10
|
-
|
11
|
-
|
12
|
-
|
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
|
20
|
+
dry-core (1.1.0)
|
19
21
|
concurrent-ruby (~> 1.0)
|
22
|
+
logger
|
20
23
|
zeitwerk (~> 2.6)
|
21
|
-
dry-inflector (1.
|
22
|
-
dry-logic (1.
|
24
|
+
dry-inflector (1.2.0)
|
25
|
+
dry-logic (1.6.0)
|
26
|
+
bigdecimal
|
23
27
|
concurrent-ruby (~> 1.0)
|
24
|
-
dry-core (~> 1.
|
28
|
+
dry-core (~> 1.1)
|
25
29
|
zeitwerk (~> 2.6)
|
26
|
-
dry-struct (1.
|
27
|
-
dry-core (~> 1.
|
28
|
-
dry-types (
|
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.
|
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.
|
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
|
54
|
+
fiber-storage (1.0.1)
|
51
55
|
ice_nine (0.11.2)
|
52
|
-
io-event (1.
|
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 (
|
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.
|
68
|
+
rubydium (0.4.8)
|
64
69
|
async (~> 2.3)
|
65
|
-
telegram-bot-ruby (~>
|
66
|
-
telegram-bot-ruby (
|
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.
|
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 = @
|
8
|
-
$config_message_id = reply("clicky buttons:", reply_markup: config_menu).
|
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
|
|
data/lib/open_ai/chat_gpt.rb
CHANGED
@@ -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).
|
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