gpt-function 0.6.0 → 0.8.0

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: 61133cf0bb081bfcc03dc1e0b2a69bbc7f043c7dc6fd9c5e56d0d9734c975575
4
- data.tar.gz: b153cad22540e8b2ad46293c8dffc1aa63b27d48f87a60cb46a9d6cc869abc5d
3
+ metadata.gz: 6dce9279b5824b7438249ec6b5504092ecbf632735392554e94751ee2b51e291
4
+ data.tar.gz: 4567ebda30b1426e4ce3b88900ab1448d84a20926f68890af572d40ac74b18d4
5
5
  SHA512:
6
- metadata.gz: 69fed6886b79e1b3e0034d3de36273b0bddc6b1ff59bb03067b737621ee85030ad334ceea48d72b9173025661f92f3f05d396d921720a4ee45a9f74dc7e9da50
7
- data.tar.gz: f375fa50fc60c54663e8c488385541caa711ee97cae76495c885b734ce826fe79dc703d13f3594e54a7d44371be6e1f7458990a527b1095fe562a7195b011df4
6
+ metadata.gz: 8d31f59e645ac0b016ae5c047fb314b8516eee831cba9591b130a7fd6d9910290809de0fb20153e2eb33e601fe1cf0dff24441867704e717090dff7539098210
7
+ data.tar.gz: bbeafda957d2e0b492a03a319ab27b0888995484d7a488a21f2f82ca484dbaebecefe290caf932c1e72108e2bf009620ca8837a0e365b3a3a0181c39ef85bfbb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gpt-function (0.4.0)
4
+ gpt-function (0.6.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -173,7 +173,7 @@ class GptFunction
173
173
  end
174
174
 
175
175
  def auto_delete
176
- metadata&.dig("auto_delete") || false
176
+ metadata&.dig("auto_delete") == "true"
177
177
  end
178
178
 
179
179
  class << self
@@ -296,7 +296,7 @@ class GptFunction
296
296
  yield batch
297
297
 
298
298
  # 如果 batch 還未處理完成,將批次請求重新加入 Storage
299
- if batch.is_processed && auto_delete
299
+ if batch.is_processed && batch.auto_delete
300
300
  batch&.input_file&.delete rescue nil
301
301
  batch&.output_file&.delete rescue nil
302
302
  batch&.error_file&.delete rescue nil
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class GptFunction
4
- VERSION = "0.6.0"
4
+ VERSION = "0.8.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gpt-function
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - etrex kuo