luogu 0.1.14 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/luogu/chatgpt.rb +2 -2
- data/lib/luogu/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24aa02351d1ee83fba59602c92fdd36f89f9ee32448047d183f44c349bf2a91a
|
4
|
+
data.tar.gz: e910f65bdce3c8b083a74769d4fa9c7e01220840fcbb2c22c3c0758043313aa6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2f7485e0756122f2ff55b43294e319617238bbc085872d85836631832b82f24278e8d2961ec78e10c25fd80fb89ed0d3352e1d7594202ea3ca121b346f1bee3
|
7
|
+
data.tar.gz: f4ccd674de1f70c894d78861bf2c9799a6052eef5c0a4579dae3f7d8cde6572f2e1bda2c69b4ce054070ffbcec2d6e82e6a8003c3557485034989b785d35e5be
|
data/README.md
CHANGED
data/lib/luogu/chatgpt.rb
CHANGED
@@ -41,10 +41,10 @@ module Luogu
|
|
41
41
|
@context.request_params = params
|
42
42
|
params = @plugin.before_request_proc.call(self, @context).request_params
|
43
43
|
end
|
44
|
-
response = client.chat(parameters: params)
|
44
|
+
response = client.chat(parameters: params).parse
|
45
45
|
@context.response = response
|
46
46
|
@plugin.after_request_proc.call(self, @context) if @plugin.after_request_proc
|
47
|
-
response.
|
47
|
+
response.dig("choices", 0, "message", "content")
|
48
48
|
end
|
49
49
|
|
50
50
|
def chat(user_message)
|
data/lib/luogu/version.rb
CHANGED