stability_sdk 0.2.2 → 0.2.3
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/stability_sdk/client.rb +7 -1
- data/lib/stability_sdk/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 355759d5ba4bcb0ba3b688e85cc87651303710b7f79be7c63233b87f55c76696
|
4
|
+
data.tar.gz: 6f216e291a32250132cc07ba6c9083eefa2927332c3fefefef19971f412d80c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f36ca048b79f3f79723427b7613bba2af9cb2f992796a7354b2b74a0c76ff6c72419aabf9c5dd0f64d8ee32b240fb1795e8a7c55d2b67e2b7f0f380c46ca4ab
|
7
|
+
data.tar.gz: 4b1ddbfc50e40a39b201082a606a9d6960b6b93b6233fa031d7e2dfc961f8d31abca1a6b180aab84727ef4c04b43692233776dba84f0750e54c63128eb5e1515
|
data/Gemfile.lock
CHANGED
data/lib/stability_sdk/client.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require "grpc"
|
2
2
|
require "generation_services_pb"
|
3
|
+
require "pry"
|
3
4
|
|
4
5
|
module StabilitySDK
|
5
6
|
class Client
|
@@ -31,7 +32,12 @@ module StabilitySDK
|
|
31
32
|
call_creds = GRPC::Core::CallCredentials.new(proc { { "authorization" => "Bearer #{options[:api_key]}" } })
|
32
33
|
creds = channel_creds.compose(call_creds)
|
33
34
|
|
34
|
-
|
35
|
+
stub_params = {}
|
36
|
+
[:channel_override, :timeout, :propagate_mask, :channel_args, :interceptors].each do |kw|
|
37
|
+
stub_params[kw] = options[kw] if options.has_key?(kw)
|
38
|
+
end
|
39
|
+
|
40
|
+
@stub = Gooseai::GenerationService::Stub.new(host, creds, **stub_params)
|
35
41
|
end
|
36
42
|
|
37
43
|
def generate(prompt, options, &block)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stability_sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kosei Moriyama
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-09-
|
11
|
+
date: 2022-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grpc
|