monadic-chat 0.4.4 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a90d35d2c3a7fef4bbfff6df8d91ea464e461a45628f54edd841337572027ba3
4
- data.tar.gz: 2427c0d1a25284eba43f2b246e5b26a00c3269faabe08183987d34d7ffb6e666
3
+ metadata.gz: a83c20abb884c16622569c71fda099a7abb1c27f2eec7a2711905ce7a8ac50c5
4
+ data.tar.gz: 4dce793f19c71f042d4ef576e701c786468c11345809d7b0b002119a5b16e59b
5
5
  SHA512:
6
- metadata.gz: 5960484908ca30dd0129951fdb405f06b37c2714ba319bd8a4bc7dd13e79105e415cf2b9670b0f135fa47f53e615d71d4c1c83ada2f900cf5ee85539545c54b2
7
- data.tar.gz: a82640ea7156b27a43f3091f69db9ce0f3c4ac0d948414b220ba123e4ef14b307ed870ea14b36104da52aaea609da4d5e598485b781ff9c85d5e9740a9805e1b
6
+ metadata.gz: 15933b315126ecb4780db603eac1b5659f7633592784bfb42f1685adb555ff0b5bde12d51352b7fcc22f779a1d4c718ed7eb2007261745b74eb700216b2c497a
7
+ data.tar.gz: 1770a4f8479ae3c44c4a9fec3f193f032ebcf9563590efc6c022bc2dd53329377459d001b7defd3741971aefabe1a069ed167c094d548a6e42f94a2e5542584b
data/CHANGELOG.md CHANGED
@@ -57,10 +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-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
data/Gemfile.lock CHANGED
@@ -56,7 +56,7 @@ GEM
56
56
  tty-color (~> 0.5)
57
57
  public_suffix (6.0.0)
58
58
  rake (13.2.1)
59
- rexml (3.3.2)
59
+ rexml (3.3.3)
60
60
  strscan
61
61
  rouge (4.3.0)
62
62
  rspec (3.13.0)
data/README.md CHANGED
@@ -27,6 +27,7 @@
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
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-2024-08-06`.
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-2024-08-06"
20
20
  else # normal mode
21
21
  "gpt-4o-mini"
22
22
  end
@@ -31,6 +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
+ "gpt-4o-2024-08-06" => "chat/completions",
34
35
  "gpt-4o-2024-05-13" => "chat/completions",
35
36
  "gpt-4-0125-preview" => "chat/completions",
36
37
  "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.5"
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-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
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-07-18 00:00:00.000000000 Z
11
+ date: 2024-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler