jekyll-chatgpt-translate 0.0.22 → 0.0.23
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 245b89b06aae1508c1fd00fa9575ba342ac7340212946f92308307da1e01de1e
|
4
|
+
data.tar.gz: 62a7ba956bc489efe84cf119457ffd181208882dd0c1939242df08a123c11b10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8516fa43643cd48288761e4fbe4afdb628dab9281482ce6e486b05e33d214c610604958d70810ce6ba61918956952fadeadfa4397ffa0e0079d671bc379c01e9
|
7
|
+
data.tar.gz: f962f34852a2184821635ed8683f0cdcd3373934f185a716f5f1e4e20c8bacd8b671746209ce829fd241da5a61dffe52e2eae74187b957c245e64783b049d86c
|
@@ -28,7 +28,7 @@ Gem::Specification.new do |s|
|
|
28
28
|
s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version=
|
29
29
|
s.required_ruby_version = '>= 2.6'
|
30
30
|
s.name = 'jekyll-chatgpt-translate'
|
31
|
-
s.version = '0.0.
|
31
|
+
s.version = '0.0.23'
|
32
32
|
s.license = 'MIT'
|
33
33
|
s.summary = 'Translate Jekyll Pages Through ChatGPT'
|
34
34
|
s.description = [
|
@@ -86,6 +86,7 @@ class GptTranslate::ChatGPT
|
|
86
86
|
}
|
87
87
|
)
|
88
88
|
answer = response.dig('choices', 0, 'message', 'content')
|
89
|
+
raise 'No content returned by ChatGPT' if answer.nil?
|
89
90
|
Jekyll.logger.debug("ChatGPT prompt: #{prompt.inspect}, ChatGPT answer: #{answer.inspect}")
|
90
91
|
rescue StandardError => e
|
91
92
|
attempt += 1
|