luogu 0.1.18 → 0.1.19

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: 51894edfe6be802243310ff3f5402e57d68c008c223cf6b7c7cb82efda826348
4
- data.tar.gz: e1803e2023ebc78ce9bde423a3ea5ee34ec136764af0d81156b5cf1119119b85
3
+ metadata.gz: fdfa637f68a431adad34ebf8e7349f74dec597f61949c56c9e2cd98b8adfd11e
4
+ data.tar.gz: 2c70ae6c20b90e694a73406f5b99cc37b432647e364a19d7a2ec850da9376910
5
5
  SHA512:
6
- metadata.gz: f870f1b9c58a73a94d16d238f58893bec437be10c2007904eb04643f5ece6855388dfe2608d304ef38e444fce158c761bd433041f25d1edc103b4a0b727a9f0a
7
- data.tar.gz: '0390f03623b16a30445ce78c0336a761b9fe169c4f6ec0b8e5a6f7543b661c65e84d2252496909dbaa2b9c439bc668f683377c013079b56999b33d855c222bf1'
6
+ metadata.gz: 0f0b8d18cc5d7781600f37e810ede2d4983c4e4d0ef6373dfd4ac8fdf09f8761331fa93a38e734ad564c515da01283f7558a9b59b2cc7396aa4fe38f10aa191f
7
+ data.tar.gz: 0d29516aad6e9b1adb0111b730651a8c95ed3c462064b1f99bbed18476e604b587aca6510560b86b91603dc69931edfcfa001bea38838b220e166902551f5745
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- luogu (0.1.16)
4
+ luogu (0.1.18)
5
5
  dotenv (~> 2.8, >= 2.8.1)
6
6
  dry-cli (~> 1.0)
7
7
  http (~> 5.1, >= 5.1.1)
data/lib/luogu/openai.rb CHANGED
@@ -6,7 +6,7 @@ module Luogu::OpenAI
6
6
 
7
7
  def initialize(*args)
8
8
  defaults = { model: "gpt-3.5-turbo", messages: []}
9
- super(**defaults.merge(args.first || {}))
9
+ super(*defaults.merge(args.first || {}).values_at(*self.class.members))
10
10
  end
11
11
 
12
12
  def to_h
@@ -43,4 +43,4 @@ module Luogu::OpenAI
43
43
  end
44
44
  end
45
45
  end
46
- end
46
+ end
data/lib/luogu/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Luogu
4
- VERSION = "0.1.18"
4
+ VERSION = "0.1.19"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luogu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.18
4
+ version: 0.1.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - MJ