monadic-chat 0.4.5 → 0.4.6a

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: a83c20abb884c16622569c71fda099a7abb1c27f2eec7a2711905ce7a8ac50c5
4
- data.tar.gz: 4dce793f19c71f042d4ef576e701c786468c11345809d7b0b002119a5b16e59b
3
+ metadata.gz: 8f9b1991649b44dacd1123eae0c791d31493d0da8a994f7de91f7d092d92235e
4
+ data.tar.gz: 77e99903d00809d337d0ed9485ecda5982056e93b2024f11858687f124808da4
5
5
  SHA512:
6
- metadata.gz: 15933b315126ecb4780db603eac1b5659f7633592784bfb42f1685adb555ff0b5bde12d51352b7fcc22f779a1d4c718ed7eb2007261745b74eb700216b2c497a
7
- data.tar.gz: 1770a4f8479ae3c44c4a9fec3f193f032ebcf9563590efc6c022bc2dd53329377459d001b7defd3741971aefabe1a069ed167c094d548a6e42f94a2e5542584b
6
+ metadata.gz: 3bdcc6b949d4e1ce5c7416a40bbc72940238d23b35ecb463505c7783aec07be1c5875544c45c80c32f61cabef4000d88449b4851f48f1104ddb1a4fa83ba3965
7
+ data.tar.gz: 8cc600a108f500a8bd10326b886294340c6877afcac65437ffd2e44d2c246684f99090b2d7fff712a39d98bd760b76f211fb48aab188250c91bde9b73581663c
data/CHANGELOG.md CHANGED
@@ -67,3 +67,6 @@
67
67
 
68
68
  ## [0.4.5] - 2024-08-07
69
69
  - `gpt-4o-2024-08-06` set as the default model for `research` mode
70
+
71
+ ## [0.4.6a] - 2024-08-15
72
+ - `chatgpt-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.3)
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,7 +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
+ - [August 15, 2024] `chatgpt-4o-latest` set as the default model for `research` mode
31
31
  - [July 19, 2024] `gpt-4o-mini` set as the default model for `normal` mode
32
32
  - [May 13, 2024] `gpt-4o` set as the default model for both `normal` and `research` modes
33
33
  - [February 9, 2024] Minor update; default model changed to `gpt-3.5-turbo-0125`
@@ -314,7 +314,7 @@ In the default configuration, the dialogue messages are reduced after ten turns
314
314
 
315
315
  ### Research Mode
316
316
 
317
- The current default language model for `research` mode is `gpt-4o-2024-08-06`.
317
+ The current default language model for `research` mode is `chatgpt-4o-latest`.
318
318
 
319
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).
320
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-2024-08-06"
19
+ "chatgpt-4o-latest"
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
+ "chatgpt-4o-latest" => "chat/completions",
34
35
  "gpt-4o-2024-08-06" => "chat/completions",
35
36
  "gpt-4o-2024-05-13" => "chat/completions",
36
37
  "gpt-4-0125-preview" => "chat/completions",
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MonadicChat
4
- VERSION = "0.4.5"
4
+ VERSION = "0.4.6a"
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-2024-08-06",
31
+ "research_model" => "chatgpt-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.5
4
+ version: 0.4.6a
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-07 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
@@ -342,11 +342,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
342
342
  version: 2.6.10
343
343
  required_rubygems_version: !ruby/object:Gem::Requirement
344
344
  requirements:
345
- - - ">="
345
+ - - ">"
346
346
  - !ruby/object:Gem::Version
347
- version: '0'
347
+ version: 1.3.1
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