monadic-chat 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -1
- data/README.md +1 -1
- data/lib/monadic_chat/open_ai.rb +4 -4
- data/lib/monadic_chat/parameters.rb +2 -3
- data/lib/monadic_chat/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3eb2b39e1a893535ac08cb83b174a30a6e85992b57bf4bcb8407ffa74f7502e0
|
4
|
+
data.tar.gz: 9459b986121400de36f85ee176a6cd1c42cf4fb6dd8cfea6dc3d16070d558912
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acd90ca17367c74fcabb22d74c4db096265dc1e83d6b1958a45be41d1ff9d8f1d34d68178af7b13e9fe1666272cf780c34e2fd4a7fc891490406ac87a828439e
|
7
|
+
data.tar.gz: 7b6951e6d56115825722b7443a115e558cba737a69e05a3ac395009ee3cfd0762ae46f12b4e332a386c05b6f939081896cc09ec5af7b387f17502e617792a72f
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
|
16
16
|
**Change Log**
|
17
17
|
|
18
|
-
- [March 21, 2023] GPT-4 models supported (
|
18
|
+
- [March 21, 2023] GPT-4 models supported (in `normal` mode)
|
19
19
|
- [March 20, 2023] Text and figure in "How the research mode workds" section updated
|
20
20
|
- [March 13, 2023] Text on the architecture of the `research` mode updated in accordance with Version 0.2.0
|
21
21
|
|
data/lib/monadic_chat/open_ai.rb
CHANGED
@@ -18,10 +18,10 @@ module OpenAI
|
|
18
18
|
def self.model_to_method(model)
|
19
19
|
{
|
20
20
|
"text-davinci-003" => "completions",
|
21
|
-
"gpt-4" => "completions",
|
22
|
-
"gpt-4-0314" => "completions",
|
23
|
-
"gpt-4-32K" => "completions",
|
24
|
-
"gpt-4-32k-0314" => "completions",
|
21
|
+
"gpt-4" => "chat/completions",
|
22
|
+
"gpt-4-0314" => "chat/completions",
|
23
|
+
"gpt-4-32K" => "chat/completions",
|
24
|
+
"gpt-4-32k-0314" => "chat/completions",
|
25
25
|
"gpt-3.5-turbo" => "chat/completions",
|
26
26
|
"gpt-3.5-turbo-0301" => "chat/completions"
|
27
27
|
}[model]
|
@@ -20,11 +20,10 @@ class MonadicApp
|
|
20
20
|
case parameter
|
21
21
|
when "model"
|
22
22
|
value = change_model
|
23
|
+
@messages = @messages_initial.dup
|
23
24
|
case @method
|
24
25
|
when RESEARCH_MODE
|
25
|
-
@template = @
|
26
|
-
when NORMAL_MODE
|
27
|
-
@template = JSON.parse @template_original
|
26
|
+
@template = @template_initial.dup
|
28
27
|
end
|
29
28
|
when "max_tokens"
|
30
29
|
value = change_max_tokens
|
data/lib/monadic_chat/version.rb
CHANGED
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.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- yohasebe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03-
|
11
|
+
date: 2023-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|