monadic-chat 0.4.6b → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -2
- data/Gemfile.lock +3 -4
- data/README.md +2 -3
- data/lib/monadic_chat/open_ai.rb +2 -2
- data/lib/monadic_chat/version.rb +1 -1
- data/lib/monadic_chat.rb +1 -1
- data/monadic_chat.gemspec +0 -1
- metadata +4 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a05b8e2fb77dbf000c1e698a7ab9b86f70d2adb1cc8b4da2a36dfa21f716383f
|
4
|
+
data.tar.gz: 57ed0c67f1facaf3539b0feed93c8f483fd481d9aeab51da46c0ee3fedab9497
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e64f3d7f089e59bba323e8d54622c89a51d0965677f8d05643031ee8dfb265d68e27b0ccb64ff89c31b231e3430b5b72fd29b718b9d1b2e514c998e1acabe530
|
7
|
+
data.tar.gz: 5f3dbd6c67f8e871185c2031b7ecd04c09e6e1140e29d5196afa8f539ab8d13fba2c5f778537f7316d5e786262ae6bac2f70d03b68431f2ac663d29c6c715f75
|
data/CHANGELOG.md
CHANGED
@@ -68,5 +68,5 @@
|
|
68
68
|
## [0.4.5] - 2024-08-07
|
69
69
|
- `gpt-4o-2024-08-06` set as the default model for `research` mode
|
70
70
|
|
71
|
-
## [0.4.
|
72
|
-
- `gpt-4o-
|
71
|
+
## [0.4.6] - 2024-08-15
|
72
|
+
- `gpt-4o-latest` set as the default model for `research` mode
|
data/Gemfile.lock
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
monadic-chat (0.4.
|
4
|
+
monadic-chat (0.4.5)
|
5
5
|
blingfire
|
6
6
|
http
|
7
7
|
kramdown
|
8
8
|
launchy
|
9
9
|
oj
|
10
10
|
pastel
|
11
|
-
rexml (>= 3.3.6)
|
12
11
|
rouge
|
13
12
|
tty-box
|
14
13
|
tty-cursor
|
@@ -61,7 +60,7 @@ GEM
|
|
61
60
|
tty-color (~> 0.5)
|
62
61
|
public_suffix (6.0.1)
|
63
62
|
rake (13.2.1)
|
64
|
-
rexml (3.3.
|
63
|
+
rexml (3.3.5)
|
65
64
|
strscan
|
66
65
|
rouge (4.3.0)
|
67
66
|
rspec (3.13.0)
|
@@ -70,7 +69,7 @@ GEM
|
|
70
69
|
rspec-mocks (~> 3.13.0)
|
71
70
|
rspec-core (3.13.0)
|
72
71
|
rspec-support (~> 3.13.0)
|
73
|
-
rspec-expectations (3.13.
|
72
|
+
rspec-expectations (3.13.1)
|
74
73
|
diff-lcs (>= 1.2.0, < 2.0)
|
75
74
|
rspec-support (~> 3.13.0)
|
76
75
|
rspec-mocks (3.13.1)
|
data/README.md
CHANGED
@@ -27,8 +27,7 @@
|
|
27
27
|
|
28
28
|
**Change Log**
|
29
29
|
|
30
|
-
- [August
|
31
|
-
- [August 15, 2024] `chatgpt-4o-latest` set as the default model for `research` mode
|
30
|
+
- [August 15, 2024] `gpt-4o-latest` set as the default model for `research` mode
|
32
31
|
- [July 19, 2024] `gpt-4o-mini` set as the default model for `normal` mode
|
33
32
|
- [May 13, 2024] `gpt-4o` set as the default model for both `normal` and `research` modes
|
34
33
|
- [February 9, 2024] Minor update; default model changed to `gpt-3.5-turbo-0125`
|
@@ -315,7 +314,7 @@ In the default configuration, the dialogue messages are reduced after ten turns
|
|
315
314
|
|
316
315
|
### Research Mode
|
317
316
|
|
318
|
-
The current default language model for `research` mode is `gpt-4o-
|
317
|
+
The current default language model for `research` mode is `gpt-4o-latest`.
|
319
318
|
|
320
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).
|
321
320
|
|
data/lib/monadic_chat/open_ai.rb
CHANGED
@@ -16,7 +16,7 @@ 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-latest"
|
20
20
|
else # normal mode
|
21
21
|
"gpt-4o-mini"
|
22
22
|
end
|
@@ -31,7 +31,7 @@ module OpenAI
|
|
31
31
|
"gpt-4o-mini-2024-07-18" => "chat/completions",
|
32
32
|
"gpt-4o-mini" => "chat/completions",
|
33
33
|
"gpt-4o" => "chat/completions",
|
34
|
-
"
|
34
|
+
"gpt-4o-latest" => "chat/completions",
|
35
35
|
"gpt-4o-2024-08-06" => "chat/completions",
|
36
36
|
"gpt-4o-2024-05-13" => "chat/completions",
|
37
37
|
"gpt-4-0125-preview" => "chat/completions",
|
data/lib/monadic_chat/version.rb
CHANGED
data/lib/monadic_chat.rb
CHANGED
data/monadic_chat.gemspec
CHANGED
@@ -43,7 +43,6 @@ Gem::Specification.new do |spec|
|
|
43
43
|
spec.add_dependency "launchy"
|
44
44
|
spec.add_dependency "oj"
|
45
45
|
spec.add_dependency "pastel"
|
46
|
-
spec.add_dependency "rexml", ">= 3.3.6"
|
47
46
|
spec.add_dependency "rouge"
|
48
47
|
spec.add_dependency "tty-box"
|
49
48
|
spec.add_dependency "tty-cursor"
|
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.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- yohasebe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -136,20 +136,6 @@ dependencies:
|
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: rexml
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - ">="
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: 3.3.6
|
146
|
-
type: :runtime
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - ">="
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: 3.3.6
|
153
139
|
- !ruby/object:Gem::Dependency
|
154
140
|
name: rouge
|
155
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -356,9 +342,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
356
342
|
version: 2.6.10
|
357
343
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
358
344
|
requirements:
|
359
|
-
- - "
|
345
|
+
- - ">="
|
360
346
|
- !ruby/object:Gem::Version
|
361
|
-
version:
|
347
|
+
version: '0'
|
362
348
|
requirements: []
|
363
349
|
rubygems_version: 3.4.13
|
364
350
|
signing_key:
|