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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/luogu/openai.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: fdfa637f68a431adad34ebf8e7349f74dec597f61949c56c9e2cd98b8adfd11e
|
4
|
+
data.tar.gz: 2c70ae6c20b90e694a73406f5b99cc37b432647e364a19d7a2ec850da9376910
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f0b8d18cc5d7781600f37e810ede2d4983c4e4d0ef6373dfd4ac8fdf09f8761331fa93a38e734ad564c515da01283f7558a9b59b2cc7396aa4fe38f10aa191f
|
7
|
+
data.tar.gz: 0d29516aad6e9b1adb0111b730651a8c95ed3c462064b1f99bbed18476e604b587aca6510560b86b91603dc69931edfcfa001bea38838b220e166902551f5745
|
data/Gemfile.lock
CHANGED
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(
|
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