monadic-chat 0.4.6b → 0.4.6

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: bf0de39007161611cb23752b98047e40048dd1cc5ccce4d35c7ae955b90ce2fd
4
- data.tar.gz: 227647da55a9e5bc4e483a0e3e56653fd8ec653dca688e68cc48eb5470b40ad8
3
+ metadata.gz: a05b8e2fb77dbf000c1e698a7ab9b86f70d2adb1cc8b4da2a36dfa21f716383f
4
+ data.tar.gz: 57ed0c67f1facaf3539b0feed93c8f483fd481d9aeab51da46c0ee3fedab9497
5
5
  SHA512:
6
- metadata.gz: 176c13bed82d14462f765104c09da51cf86f71eec1ac95d3a818d958d932a7e299d633da902ac9ed57afc5c0da47f1c4ebe13f3d4f5199b20cf8f90a44ce0a40
7
- data.tar.gz: 442704f4a37e4a8d4884ccf0eba74389e5ad5971e42baf20a9a05e68d1fef4557846320c7aa6781c689f480aff82f7ef38ae3bac417a33b8b4a9be717254df72
6
+ metadata.gz: e64f3d7f089e59bba323e8d54622c89a51d0965677f8d05643031ee8dfb265d68e27b0ccb64ff89c31b231e3430b5b72fd29b718b9d1b2e514c998e1acabe530
7
+ data.tar.gz: 5f3dbd6c67f8e871185c2031b7ecd04c09e6e1140e29d5196afa8f539ab8d13fba2c5f778537f7316d5e786262ae6bac2f70d03b68431f2ac663d29c6c715f75
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.6b] - 2024-08-15
72
- - `gpt-4o-2024-08-06` set as the default model for `research` mode again
71
+ ## [0.4.6] - 2024-08-15
72
+ - `gpt-4o-latest` set as the default model for `research` mode
data/Gemfile.lock CHANGED
@@ -1,14 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- monadic-chat (0.4.6b)
4
+ monadic-chat (0.4.5)
5
5
  blingfire
6
6
  http
7
7
  kramdown
8
8
  launchy
9
9
  oj
10
10
  pastel
11
- rexml (>= 3.3.6)
12
11
  rouge
13
12
  tty-box
14
13
  tty-cursor
@@ -61,7 +60,7 @@ GEM
61
60
  tty-color (~> 0.5)
62
61
  public_suffix (6.0.1)
63
62
  rake (13.2.1)
64
- rexml (3.3.6)
63
+ rexml (3.3.5)
65
64
  strscan
66
65
  rouge (4.3.0)
67
66
  rspec (3.13.0)
@@ -70,7 +69,7 @@ GEM
70
69
  rspec-mocks (~> 3.13.0)
71
70
  rspec-core (3.13.0)
72
71
  rspec-support (~> 3.13.0)
73
- rspec-expectations (3.13.2)
72
+ rspec-expectations (3.13.1)
74
73
  diff-lcs (>= 1.2.0, < 2.0)
75
74
  rspec-support (~> 3.13.0)
76
75
  rspec-mocks (3.13.1)
data/README.md CHANGED
@@ -27,8 +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
31
- - [August 15, 2024] `chatgpt-4o-latest` set as the default model for `research` mode
30
+ - [August 15, 2024] `gpt-4o-latest` set as the default model for `research` mode
32
31
  - [July 19, 2024] `gpt-4o-mini` set as the default model for `normal` mode
33
32
  - [May 13, 2024] `gpt-4o` set as the default model for both `normal` and `research` modes
34
33
  - [February 9, 2024] Minor update; default model changed to `gpt-3.5-turbo-0125`
@@ -315,7 +314,7 @@ In the default configuration, the dialogue messages are reduced after ten turns
315
314
 
316
315
  ### Research Mode
317
316
 
318
- The current default language model for `research` mode is `gpt-4o-2024-08-06`.
317
+ The current default language model for `research` mode is `gpt-4o-latest`.
319
318
 
320
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).
321
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
+ "gpt-4o-latest"
20
20
  else # normal mode
21
21
  "gpt-4o-mini"
22
22
  end
@@ -31,7 +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
+ "gpt-4o-latest" => "chat/completions",
35
35
  "gpt-4o-2024-08-06" => "chat/completions",
36
36
  "gpt-4o-2024-05-13" => "chat/completions",
37
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.6b"
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-2024-08-06",
31
+ "research_model" => "gpt-4o-latest",
32
32
  "max_tokens_wiki" => 1600,
33
33
  "num_retrials" => 2,
34
34
  "min_query_size" => 5,
data/monadic_chat.gemspec CHANGED
@@ -43,7 +43,6 @@ 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"
47
46
  spec.add_dependency "rouge"
48
47
  spec.add_dependency "tty-box"
49
48
  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.6b
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-08-27 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
@@ -136,20 +136,6 @@ 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
153
139
  - !ruby/object:Gem::Dependency
154
140
  name: rouge
155
141
  requirement: !ruby/object:Gem::Requirement
@@ -356,9 +342,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
356
342
  version: 2.6.10
357
343
  required_rubygems_version: !ruby/object:Gem::Requirement
358
344
  requirements:
359
- - - ">"
345
+ - - ">="
360
346
  - !ruby/object:Gem::Version
361
- version: 1.3.1
347
+ version: '0'
362
348
  requirements: []
363
349
  rubygems_version: 3.4.13
364
350
  signing_key: