monadic-chat 0.4.4 → 0.4.6

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: a90d35d2c3a7fef4bbfff6df8d91ea464e461a45628f54edd841337572027ba3
4
- data.tar.gz: 2427c0d1a25284eba43f2b246e5b26a00c3269faabe08183987d34d7ffb6e666
3
+ metadata.gz: a05b8e2fb77dbf000c1e698a7ab9b86f70d2adb1cc8b4da2a36dfa21f716383f
4
+ data.tar.gz: 57ed0c67f1facaf3539b0feed93c8f483fd481d9aeab51da46c0ee3fedab9497
5
5
  SHA512:
6
- metadata.gz: 5960484908ca30dd0129951fdb405f06b37c2714ba319bd8a4bc7dd13e79105e415cf2b9670b0f135fa47f53e615d71d4c1c83ada2f900cf5ee85539545c54b2
7
- data.tar.gz: a82640ea7156b27a43f3091f69db9ce0f3c4ac0d948414b220ba123e4ef14b307ed870ea14b36104da52aaea609da4d5e598485b781ff9c85d5e9740a9805e1b
6
+ metadata.gz: e64f3d7f089e59bba323e8d54622c89a51d0965677f8d05643031ee8dfb265d68e27b0ccb64ff89c31b231e3430b5b72fd29b718b9d1b2e514c998e1acabe530
7
+ data.tar.gz: 5f3dbd6c67f8e871185c2031b7ecd04c09e6e1140e29d5196afa8f539ab8d13fba2c5f778537f7316d5e786262ae6bac2f70d03b68431f2ac663d29c6c715f75
data/CHANGELOG.md CHANGED
@@ -57,10 +57,16 @@
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-5-13
60
+ ## [0.4.3] - 2024-05-13
61
61
 
62
62
  - `gpt-4o` set as default model for both `normal` and `research` modes
63
63
 
64
- ## [0.4.4] - 2024-7-18
64
+ ## [0.4.4] - 2024-07-18
65
65
 
66
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
70
+
71
+ ## [0.4.6] - 2024-08-15
72
+ - `gpt-4o-latest` 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)
4
+ monadic-chat (0.4.5)
5
5
  blingfire
6
6
  http
7
7
  kramdown
@@ -25,7 +25,8 @@ GEM
25
25
  base64 (0.2.0)
26
26
  bigdecimal (3.1.8)
27
27
  blingfire (0.2.1)
28
- childprocess (5.0.0)
28
+ childprocess (5.1.0)
29
+ logger (~> 1.5)
29
30
  diff-lcs (1.5.1)
30
31
  domain_name (0.6.20240107)
31
32
  ffi (1.17.0)
@@ -39,7 +40,7 @@ GEM
39
40
  http-cookie (~> 1.0)
40
41
  http-form_data (~> 2.2)
41
42
  llhttp-ffi (~> 0.5.0)
42
- http-cookie (1.0.6)
43
+ http-cookie (1.0.7)
43
44
  domain_name (~> 0.5)
44
45
  http-form_data (2.3.0)
45
46
  kramdown (2.4.0)
@@ -50,13 +51,16 @@ GEM
50
51
  llhttp-ffi (0.5.0)
51
52
  ffi-compiler (~> 1.0)
52
53
  rake (~> 13.0)
53
- oj (3.16.4)
54
+ logger (1.6.0)
55
+ oj (3.16.5)
54
56
  bigdecimal (>= 3.0)
57
+ ostruct (>= 0.2)
58
+ ostruct (0.6.0)
55
59
  pastel (0.8.0)
56
60
  tty-color (~> 0.5)
57
- public_suffix (6.0.0)
61
+ public_suffix (6.0.1)
58
62
  rake (13.2.1)
59
- rexml (3.3.2)
63
+ rexml (3.3.5)
60
64
  strscan
61
65
  rouge (4.3.0)
62
66
  rspec (3.13.0)
@@ -121,4 +125,4 @@ DEPENDENCIES
121
125
  rspec
122
126
 
123
127
  BUNDLED WITH
124
- 2.4.17
128
+ 2.4.13
data/README.md CHANGED
@@ -27,6 +27,7 @@
27
27
 
28
28
  **Change Log**
29
29
 
30
+ - [August 15, 2024] `gpt-4o-latest` set as the default model for `research` mode
30
31
  - [July 19, 2024] `gpt-4o-mini` set as the default model for `normal` mode
31
32
  - [May 13, 2024] `gpt-4o` set as the default model for both `normal` and `research` modes
32
33
  - [February 9, 2024] Minor update; default model changed to `gpt-3.5-turbo-0125`
@@ -313,7 +314,7 @@ In the default configuration, the dialogue messages are reduced after ten turns
313
314
 
314
315
  ### Research Mode
315
316
 
316
- The current default language model for `research` mode is `gpt-4o`.
317
+ The current default language model for `research` mode is `gpt-4o-latest`.
317
318
 
318
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).
319
320
 
@@ -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,6 +31,8 @@ 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
+ "gpt-4o-latest" => "chat/completions",
35
+ "gpt-4o-2024-08-06" => "chat/completions",
34
36
  "gpt-4o-2024-05-13" => "chat/completions",
35
37
  "gpt-4-0125-preview" => "chat/completions",
36
38
  "gpt-4-turbo-preview" => "chat/completions",
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MonadicChat
4
- VERSION = "0.4.4"
4
+ VERSION = "0.4.6"
5
5
  end
data/lib/monadic_chat.rb CHANGED
@@ -28,7 +28,7 @@ Oj.mimic_JSON
28
28
  module MonadicChat
29
29
  SETTINGS = {
30
30
  "normal_model" => "gpt-4o-mini",
31
- "research_model" => "gpt-4o",
31
+ "research_model" => "gpt-4o-latest",
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
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-07-18 00:00:00.000000000 Z
11
+ date: 2024-08-15 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.5.10
349
+ rubygems_version: 3.4.13
350
350
  signing_key:
351
351
  specification_version: 4
352
352
  summary: Highly configurable CLI client app for OpenAI chat/text-completion API