monadic-chat 0.4.3 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -1
- data/Gemfile.lock +13 -10
- data/README.md +4 -2
- data/lib/monadic_chat/open_ai.rb +5 -2
- data/lib/monadic_chat/version.rb +1 -1
- data/lib/monadic_chat.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a83c20abb884c16622569c71fda099a7abb1c27f2eec7a2711905ce7a8ac50c5
|
4
|
+
data.tar.gz: 4dce793f19c71f042d4ef576e701c786468c11345809d7b0b002119a5b16e59b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15933b315126ecb4780db603eac1b5659f7633592784bfb42f1685adb555ff0b5bde12d51352b7fcc22f779a1d4c718ed7eb2007261745b74eb700216b2c497a
|
7
|
+
data.tar.gz: 1770a4f8479ae3c44c4a9fec3f193f032ebcf9563590efc6c022bc2dd53329377459d001b7defd3741971aefabe1a069ed167c094d548a6e42f94a2e5542584b
|
data/CHANGELOG.md
CHANGED
@@ -57,6 +57,13 @@
|
|
57
57
|
- Issue of redundant token addition addressed
|
58
58
|
- Default model changed to `gpt-3.5-turbo-0125`
|
59
59
|
|
60
|
-
## [0.4.3] - 2024-
|
60
|
+
## [0.4.3] - 2024-05-13
|
61
61
|
|
62
62
|
- `gpt-4o` set as default model for both `normal` and `research` modes
|
63
|
+
|
64
|
+
## [0.4.4] - 2024-07-18
|
65
|
+
|
66
|
+
- `gpt-4o-mini` set as default model for `normal` mode
|
67
|
+
|
68
|
+
## [0.4.5] - 2024-08-07
|
69
|
+
- `gpt-4o-2024-08-06` set as the default model for `research` mode
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
monadic-chat (0.4.
|
4
|
+
monadic-chat (0.4.4)
|
5
5
|
blingfire
|
6
6
|
http
|
7
7
|
kramdown
|
@@ -20,15 +20,16 @@ PATH
|
|
20
20
|
GEM
|
21
21
|
remote: https://rubygems.org/
|
22
22
|
specs:
|
23
|
-
addressable (2.8.
|
24
|
-
public_suffix (>= 2.0.2, <
|
23
|
+
addressable (2.8.7)
|
24
|
+
public_suffix (>= 2.0.2, < 7.0)
|
25
25
|
base64 (0.2.0)
|
26
26
|
bigdecimal (3.1.8)
|
27
27
|
blingfire (0.2.1)
|
28
28
|
childprocess (5.0.0)
|
29
29
|
diff-lcs (1.5.1)
|
30
30
|
domain_name (0.6.20240107)
|
31
|
-
ffi (1.
|
31
|
+
ffi (1.17.0)
|
32
|
+
ffi (1.17.0-x86_64-darwin)
|
32
33
|
ffi-compiler (1.3.2)
|
33
34
|
ffi (>= 1.15.5)
|
34
35
|
rake
|
@@ -38,7 +39,7 @@ GEM
|
|
38
39
|
http-cookie (~> 1.0)
|
39
40
|
http-form_data (~> 2.2)
|
40
41
|
llhttp-ffi (~> 0.5.0)
|
41
|
-
http-cookie (1.0.
|
42
|
+
http-cookie (1.0.6)
|
42
43
|
domain_name (~> 0.5)
|
43
44
|
http-form_data (2.3.0)
|
44
45
|
kramdown (2.4.0)
|
@@ -49,21 +50,22 @@ GEM
|
|
49
50
|
llhttp-ffi (0.5.0)
|
50
51
|
ffi-compiler (~> 1.0)
|
51
52
|
rake (~> 13.0)
|
52
|
-
oj (3.16.
|
53
|
+
oj (3.16.4)
|
53
54
|
bigdecimal (>= 3.0)
|
54
55
|
pastel (0.8.0)
|
55
56
|
tty-color (~> 0.5)
|
56
|
-
public_suffix (
|
57
|
+
public_suffix (6.0.0)
|
57
58
|
rake (13.2.1)
|
58
|
-
rexml (3.
|
59
|
-
|
59
|
+
rexml (3.3.3)
|
60
|
+
strscan
|
61
|
+
rouge (4.3.0)
|
60
62
|
rspec (3.13.0)
|
61
63
|
rspec-core (~> 3.13.0)
|
62
64
|
rspec-expectations (~> 3.13.0)
|
63
65
|
rspec-mocks (~> 3.13.0)
|
64
66
|
rspec-core (3.13.0)
|
65
67
|
rspec-support (~> 3.13.0)
|
66
|
-
rspec-expectations (3.13.
|
68
|
+
rspec-expectations (3.13.1)
|
67
69
|
diff-lcs (>= 1.2.0, < 2.0)
|
68
70
|
rspec-support (~> 3.13.0)
|
69
71
|
rspec-mocks (3.13.1)
|
@@ -75,6 +77,7 @@ GEM
|
|
75
77
|
unicode-display_width (>= 1.5, < 3.0)
|
76
78
|
unicode_utils (~> 1.4)
|
77
79
|
strings-ansi (0.2.0)
|
80
|
+
strscan (3.1.0)
|
78
81
|
tty-box (0.7.0)
|
79
82
|
pastel (~> 0.8)
|
80
83
|
strings (~> 0.2.0)
|
data/README.md
CHANGED
@@ -27,6 +27,8 @@
|
|
27
27
|
|
28
28
|
**Change Log**
|
29
29
|
|
30
|
+
- [August 7, 2024] `gpt-4o-2024-08-06` set as the default model for `research` mode
|
31
|
+
- [July 19, 2024] `gpt-4o-mini` set as the default model for `normal` mode
|
30
32
|
- [May 13, 2024] `gpt-4o` set as the default model for both `normal` and `research` modes
|
31
33
|
- [February 9, 2024] Minor update; default model changed to `gpt-3.5-turbo-0125`
|
32
34
|
- [November 10, 2023] Stability improvement; default model changed to `gpt-3.5-turbo`
|
@@ -306,13 +308,13 @@ Monadic Chat has two modes. The `normal` mode utilizes OpenAI's chat API to achi
|
|
306
308
|
|
307
309
|
### Normal Mode
|
308
310
|
|
309
|
-
The current default language model for `normal` mode is `gpt-4o`.
|
311
|
+
The current default language model for `normal` mode is `gpt-4o-mini`.
|
310
312
|
|
311
313
|
In the default configuration, the dialogue messages are reduced after ten turns by deleting the oldest ones (but not the messages that the `system` role has given as instructions).
|
312
314
|
|
313
315
|
### Research Mode
|
314
316
|
|
315
|
-
The current default language model for `research` mode is `gpt-4o`.
|
317
|
+
The current default language model for `research` mode is `gpt-4o-2024-08-06`.
|
316
318
|
|
317
319
|
In `research` mode, the conversation between the user and the large-scale language model is accomplished with a mechanism that tracks the conversation history in a monadic structure. In the default configuration, the dialogue messages are reduced after ten turns by deleting the oldest ones (but not the messages that the `system` role has given as instructions).
|
318
320
|
|
data/lib/monadic_chat/open_ai.rb
CHANGED
@@ -16,9 +16,9 @@ RETRY_WAIT_TIME_SEC = 1
|
|
16
16
|
module OpenAI
|
17
17
|
def self.default_model(research_mode: false)
|
18
18
|
if research_mode
|
19
|
-
"gpt-4o"
|
19
|
+
"gpt-4o-2024-08-06"
|
20
20
|
else # normal mode
|
21
|
-
"gpt-4o"
|
21
|
+
"gpt-4o-mini"
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
@@ -28,7 +28,10 @@ module OpenAI
|
|
28
28
|
"gpt-3.5-turbo-1106" => "chat/completions",
|
29
29
|
"gpt-3.5-turbo" => "chat/completions",
|
30
30
|
"gpt-3.5-turbo-16k" => "chat/completions",
|
31
|
+
"gpt-4o-mini-2024-07-18" => "chat/completions",
|
32
|
+
"gpt-4o-mini" => "chat/completions",
|
31
33
|
"gpt-4o" => "chat/completions",
|
34
|
+
"gpt-4o-2024-08-06" => "chat/completions",
|
32
35
|
"gpt-4o-2024-05-13" => "chat/completions",
|
33
36
|
"gpt-4-0125-preview" => "chat/completions",
|
34
37
|
"gpt-4-turbo-preview" => "chat/completions",
|
data/lib/monadic_chat/version.rb
CHANGED
data/lib/monadic_chat.rb
CHANGED
@@ -27,8 +27,8 @@ Oj.mimic_JSON
|
|
27
27
|
|
28
28
|
module MonadicChat
|
29
29
|
SETTINGS = {
|
30
|
-
"normal_model" => "gpt-4o",
|
31
|
-
"research_model" => "gpt-4o",
|
30
|
+
"normal_model" => "gpt-4o-mini",
|
31
|
+
"research_model" => "gpt-4o-2024-08-06",
|
32
32
|
"max_tokens_wiki" => 1600,
|
33
33
|
"num_retrials" => 2,
|
34
34
|
"min_query_size" => 5,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: monadic-chat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- yohasebe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -346,7 +346,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
346
346
|
- !ruby/object:Gem::Version
|
347
347
|
version: '0'
|
348
348
|
requirements: []
|
349
|
-
rubygems_version: 3.
|
349
|
+
rubygems_version: 3.5.10
|
350
350
|
signing_key:
|
351
351
|
specification_version: 4
|
352
352
|
summary: Highly configurable CLI client app for OpenAI chat/text-completion API
|