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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c6c1eec7b2ccb702d089ea8c9a149598d9849ed65b6cc86bd973eb7b89f9ccc0
4
- data.tar.gz: df870526831d8585a4dba437e0258626eafc1046e128866e6d32858455b4867a
3
+ metadata.gz: 3eb2b39e1a893535ac08cb83b174a30a6e85992b57bf4bcb8407ffa74f7502e0
4
+ data.tar.gz: 9459b986121400de36f85ee176a6cd1c42cf4fb6dd8cfea6dc3d16070d558912
5
5
  SHA512:
6
- metadata.gz: a8d55eaae3d54fa3278d10d0690336854c1c3b014f73e4a55816ff23e0e2c6e60cc7c26e2f9cde10351d70a430dbe5df26aaf182f5713953b1e3578eeee8637d
7
- data.tar.gz: 0f6435e95973154d0afbd97414701b0e3d0b743d2dc375b91e333d1d41e2f2d1cfda48b8343dfb62791bf2d59ccc2d357453cfb4dc31304a9a479dda04ae7a2a
6
+ metadata.gz: acd90ca17367c74fcabb22d74c4db096265dc1e83d6b1958a45be41d1ff9d8f1d34d68178af7b13e9fe1666272cf780c34e2fd4a7fc891490406ac87a828439e
7
+ data.tar.gz: 7b6951e6d56115825722b7443a115e558cba737a69e05a3ac395009ee3cfd0762ae46f12b4e332a386c05b6f939081896cc09ec5af7b387f17502e617792a72f
data/CHANGELOG.md CHANGED
@@ -16,4 +16,4 @@
16
16
 
17
17
  ## [0.2.1] - 2023-03-21
18
18
 
19
- - GPT-4 models supported (experimental)
19
+ - GPT-4 models supported (in `normal` mode)
data/README.md CHANGED
@@ -15,7 +15,7 @@
15
15
 
16
16
  **Change Log**
17
17
 
18
- - [March 21, 2023] GPT-4 models supported (experimental)
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
 
@@ -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 = @template_original.dup
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MonadicChat
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.2"
5
5
  end
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.1
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-20 00:00:00.000000000 Z
11
+ date: 2023-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler