monadic-chat 0.4.2 → 0.4.3

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: 840f1afe3ac1bac2709058c004e0181bc35dce391ac2774575cc7da3de5a31af
4
- data.tar.gz: a7d82295925a59e375c878e90832457e38a3b675e4ee6e952dd641b9053cf972
3
+ metadata.gz: b82fdd0aca3e154e238309f1e76468c6c7e48c45a2406386c11adf12397e279d
4
+ data.tar.gz: 3411bcfbfc03f740746d923b00d488cd89eb4667a536163e9542b30a268864d1
5
5
  SHA512:
6
- metadata.gz: 2577863d5326aa6b442906d71fbd0e1478300657597362e4c0bac1e42f8e5fc46ccf9b88ec515df53d96b4b21e7efd43cfa5884daf5ce65713324b0803e8a893
7
- data.tar.gz: 3b3c673acf3c2c46147dfaf95fd80c5c6a7fd88eaec22ef913816bf3da114f49af9c54bda36e31beff5149ac0ed280812ae42711232661397a2f3f6cb4c4c5c7
6
+ metadata.gz: c348023d61cd2899b2aa684cd26c999d85d67145cad4ef7d6dab98b07789cac0f9702eb6ec9601daf3cce59e4f9288a3c96bb7453caab3f878cd4d2fbde4f0f2
7
+ data.tar.gz: 85491c0aff6147b130998c73ce699f049784be9c14c26553119b2f19b98e3a1af0c4f8a0c846817b29c7f2a17de57130ed760431e3db3d6de089042f9cd8ca8b
data/CHANGELOG.md CHANGED
@@ -56,3 +56,7 @@
56
56
 
57
57
  - Issue of redundant token addition addressed
58
58
  - Default model changed to `gpt-3.5-turbo-0125`
59
+
60
+ ## [0.4.3] - 2024-5-13
61
+
62
+ - `gpt-4o` set as default model for both `normal` and `research` modes
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- monadic-chat (0.4.2)
4
+ monadic-chat (0.4.3)
5
5
  blingfire
6
6
  http
7
7
  kramdown
@@ -23,13 +23,14 @@ GEM
23
23
  addressable (2.8.6)
24
24
  public_suffix (>= 2.0.2, < 6.0)
25
25
  base64 (0.2.0)
26
- bigdecimal (3.1.6)
26
+ bigdecimal (3.1.8)
27
27
  blingfire (0.2.1)
28
+ childprocess (5.0.0)
28
29
  diff-lcs (1.5.1)
29
30
  domain_name (0.6.20240107)
30
31
  ffi (1.16.3)
31
- ffi-compiler (1.0.1)
32
- ffi (>= 1.0.0)
32
+ ffi-compiler (1.3.2)
33
+ ffi (>= 1.15.5)
33
34
  rake
34
35
  http (5.2.0)
35
36
  addressable (~> 2.8)
@@ -42,8 +43,9 @@ GEM
42
43
  http-form_data (2.3.0)
43
44
  kramdown (2.4.0)
44
45
  rexml
45
- launchy (2.5.2)
46
+ launchy (3.0.1)
46
47
  addressable (~> 2.8)
48
+ childprocess (~> 5.0)
47
49
  llhttp-ffi (0.5.0)
48
50
  ffi-compiler (~> 1.0)
49
51
  rake (~> 13.0)
@@ -51,10 +53,10 @@ GEM
51
53
  bigdecimal (>= 3.0)
52
54
  pastel (0.8.0)
53
55
  tty-color (~> 0.5)
54
- public_suffix (5.0.4)
55
- rake (13.1.0)
56
+ public_suffix (5.0.5)
57
+ rake (13.2.1)
56
58
  rexml (3.2.6)
57
- rouge (4.2.0)
59
+ rouge (4.2.1)
58
60
  rspec (3.13.0)
59
61
  rspec-core (~> 3.13.0)
60
62
  rspec-expectations (~> 3.13.0)
@@ -64,10 +66,10 @@ GEM
64
66
  rspec-expectations (3.13.0)
65
67
  diff-lcs (>= 1.2.0, < 2.0)
66
68
  rspec-support (~> 3.13.0)
67
- rspec-mocks (3.13.0)
69
+ rspec-mocks (3.13.1)
68
70
  diff-lcs (>= 1.2.0, < 2.0)
69
71
  rspec-support (~> 3.13.0)
70
- rspec-support (3.13.0)
72
+ rspec-support (3.13.1)
71
73
  strings (0.2.1)
72
74
  strings-ansi (~> 0.2)
73
75
  unicode-display_width (>= 1.5, < 3.0)
data/README.md CHANGED
@@ -27,6 +27,7 @@
27
27
 
28
28
  **Change Log**
29
29
 
30
+ - [May 13, 2024] `gpt-4o` set as the default model for both `normal` and `research` modes
30
31
  - [February 9, 2024] Minor update; default model changed to `gpt-3.5-turbo-0125`
31
32
  - [November 10, 2023] Stability improvement; default model changed to `gpt-3.5-turbo`
32
33
  - [October 07, 2023] Stability improvement; default model changed to `gpt-3.5-turbo-0613`
@@ -305,13 +306,13 @@ Monadic Chat has two modes. The `normal` mode utilizes OpenAI's chat API to achi
305
306
 
306
307
  ### Normal Mode
307
308
 
308
- The current default language model for `normal` mode is `gpt-3.5-turbo-0125`.
309
+ The current default language model for `normal` mode is `gpt-4o`.
309
310
 
310
311
  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).
311
312
 
312
313
  ### Research Mode
313
314
 
314
- The current default language model for `research` mode is `gpt-4-turbo-preview`.
315
+ The current default language model for `research` mode is `gpt-4o`.
315
316
 
316
317
  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).
317
318
 
@@ -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-4-turbo-preview"
20
- else
21
- "gpt-4"
19
+ "gpt-4o"
20
+ else # normal mode
21
+ "gpt-4o"
22
22
  end
23
23
  end
24
24
 
@@ -28,6 +28,8 @@ 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" => "chat/completions",
32
+ "gpt-4o-2024-05-13" => "chat/completions",
31
33
  "gpt-4-0125-preview" => "chat/completions",
32
34
  "gpt-4-turbo-preview" => "chat/completions",
33
35
  "gpt-4-1106-preview" => "chat/completions",
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MonadicChat
4
- VERSION = "0.4.2"
4
+ VERSION = "0.4.3"
5
5
  end
data/lib/monadic_chat.rb CHANGED
@@ -27,9 +27,9 @@ Oj.mimic_JSON
27
27
 
28
28
  module MonadicChat
29
29
  SETTINGS = {
30
- "normal_model" => "gpt-3.5-turbo-0125",
31
- "research_model" => "gpt-4-turbo-preview",
32
- "max_tokens_wiki" => 1000,
30
+ "normal_model" => "gpt-4o",
31
+ "research_model" => "gpt-4o",
32
+ "max_tokens_wiki" => 1600,
33
33
  "num_retrials" => 2,
34
34
  "min_query_size" => 5,
35
35
  "timeout_sec" => 120
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.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - yohasebe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-09 00:00:00.000000000 Z
11
+ date: 2024-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler