monadic-chat 0.4.6a → 0.4.6b

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: 8f9b1991649b44dacd1123eae0c791d31493d0da8a994f7de91f7d092d92235e
4
- data.tar.gz: 77e99903d00809d337d0ed9485ecda5982056e93b2024f11858687f124808da4
3
+ metadata.gz: bf0de39007161611cb23752b98047e40048dd1cc5ccce4d35c7ae955b90ce2fd
4
+ data.tar.gz: 227647da55a9e5bc4e483a0e3e56653fd8ec653dca688e68cc48eb5470b40ad8
5
5
  SHA512:
6
- metadata.gz: 3bdcc6b949d4e1ce5c7416a40bbc72940238d23b35ecb463505c7783aec07be1c5875544c45c80c32f61cabef4000d88449b4851f48f1104ddb1a4fa83ba3965
7
- data.tar.gz: 8cc600a108f500a8bd10326b886294340c6877afcac65437ffd2e44d2c246684f99090b2d7fff712a39d98bd760b76f211fb48aab188250c91bde9b73581663c
6
+ metadata.gz: 176c13bed82d14462f765104c09da51cf86f71eec1ac95d3a818d958d932a7e299d633da902ac9ed57afc5c0da47f1c4ebe13f3d4f5199b20cf8f90a44ce0a40
7
+ data.tar.gz: 442704f4a37e4a8d4884ccf0eba74389e5ad5971e42baf20a9a05e68d1fef4557846320c7aa6781c689f480aff82f7ef38ae3bac417a33b8b4a9be717254df72
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.6a] - 2024-08-15
72
- - `chatgpt-4o-latest` set as the default model for `research` mode
71
+ ## [0.4.6b] - 2024-08-15
72
+ - `gpt-4o-2024-08-06` set as the default model for `research` mode again
data/Gemfile.lock CHANGED
@@ -1,13 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- monadic-chat (0.4.5)
4
+ monadic-chat (0.4.6b)
5
5
  blingfire
6
6
  http
7
7
  kramdown
8
8
  launchy
9
9
  oj
10
10
  pastel
11
+ rexml (>= 3.3.6)
11
12
  rouge
12
13
  tty-box
13
14
  tty-cursor
@@ -60,7 +61,7 @@ GEM
60
61
  tty-color (~> 0.5)
61
62
  public_suffix (6.0.1)
62
63
  rake (13.2.1)
63
- rexml (3.3.5)
64
+ rexml (3.3.6)
64
65
  strscan
65
66
  rouge (4.3.0)
66
67
  rspec (3.13.0)
@@ -69,7 +70,7 @@ GEM
69
70
  rspec-mocks (~> 3.13.0)
70
71
  rspec-core (3.13.0)
71
72
  rspec-support (~> 3.13.0)
72
- rspec-expectations (3.13.1)
73
+ rspec-expectations (3.13.2)
73
74
  diff-lcs (>= 1.2.0, < 2.0)
74
75
  rspec-support (~> 3.13.0)
75
76
  rspec-mocks (3.13.1)
data/README.md CHANGED
@@ -27,6 +27,7 @@
27
27
 
28
28
  **Change Log**
29
29
 
30
+ - [August 27, 2024] `gpt-4o-2024-08-06` set as the default model for `research` mode again
30
31
  - [August 15, 2024] `chatgpt-4o-latest` set as the default model for `research` mode
31
32
  - [July 19, 2024] `gpt-4o-mini` set as the default model for `normal` mode
32
33
  - [May 13, 2024] `gpt-4o` set as the default model for both `normal` and `research` modes
@@ -314,7 +315,7 @@ In the default configuration, the dialogue messages are reduced after ten turns
314
315
 
315
316
  ### Research Mode
316
317
 
317
- The current default language model for `research` mode is `chatgpt-4o-latest`.
318
+ The current default language model for `research` mode is `gpt-4o-2024-08-06`.
318
319
 
319
320
  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
321
 
@@ -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
- "chatgpt-4o-latest"
19
+ "gpt-4o-2024-08-06"
20
20
  else # normal mode
21
21
  "gpt-4o-mini"
22
22
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MonadicChat
4
- VERSION = "0.4.6a"
4
+ VERSION = "0.4.6b"
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" => "chatgpt-4o-latest",
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,
data/monadic_chat.gemspec CHANGED
@@ -43,6 +43,7 @@ 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"
46
47
  spec.add_dependency "rouge"
47
48
  spec.add_dependency "tty-box"
48
49
  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.6a
4
+ version: 0.4.6b
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-15 00:00:00.000000000 Z
11
+ date: 2024-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -136,6 +136,20 @@ 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
139
153
  - !ruby/object:Gem::Dependency
140
154
  name: rouge
141
155
  requirement: !ruby/object:Gem::Requirement