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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b3c239513021649189e56964b9accdf59e00760ef106b691dd87a70d2715b357
4
- data.tar.gz: 2acd179cffb5a3d583bc132c2769b83fcb93e159a02c37246c97f240f08f5026
3
+ metadata.gz: 355759d5ba4bcb0ba3b688e85cc87651303710b7f79be7c63233b87f55c76696
4
+ data.tar.gz: 6f216e291a32250132cc07ba6c9083eefa2927332c3fefefef19971f412d80c8
5
5
  SHA512:
6
- metadata.gz: 67e17b02652f760974041c5404ff6a6f2a8fdde7f812ff9d2219893733c5898f8d255873fccafdbb287ce1f41e77e063bdcf29a7c66ad356f0350f76c719c95a
7
- data.tar.gz: 18cc7f68fb359296471d5d3257438ebd079b088f010667986dbc8878ee7c1a29cf95a9e7cbbeb008553439e04a38c2714d524c033b5dadfcfcccb18ff41de201
6
+ metadata.gz: 8f36ca048b79f3f79723427b7613bba2af9cb2f992796a7354b2b74a0c76ff6c72419aabf9c5dd0f64d8ee32b240fb1795e8a7c55d2b67e2b7f0f380c46ca4ab
7
+ data.tar.gz: 4b1ddbfc50e40a39b201082a606a9d6960b6b93b6233fa031d7e2dfc961f8d31abca1a6b180aab84727ef4c04b43692233776dba84f0750e54c63128eb5e1515
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stability_sdk (0.2.2)
4
+ stability_sdk (0.2.3)
5
5
  grpc (>= 1.0.0)
6
6
  mime-types (>= 3.0.0)
7
7
 
@@ -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
- @stub = Gooseai::GenerationService::Stub.new(host, creds)
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)
@@ -1,3 +1,3 @@
1
1
  module StabilitySDK
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
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.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-27 00:00:00.000000000 Z
11
+ date: 2022-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc