openai-assistant 0.6.0 → 0.7.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: 30d997127785423573776d064b5a0096f121df245af1c56511be53563b342505
4
- data.tar.gz: 166a91a99f0caf0f5b08c9de791531c9f16c9493d2ffa1395db11237c982f620
3
+ metadata.gz: 96a8f05d752820cc1e3249578c09c2d01be9b1226947b429391c1912384ef13c
4
+ data.tar.gz: 5e23932e45833891e126511527e6988b14e54c302c5d7fb27cb4e5b10da253ee
5
5
  SHA512:
6
- metadata.gz: c5f306812242afaac48bd3da55e0280a36877238052ebdd5e75942d68bdf68cdbfc9a81d1c0ebeb2b9d8abd4b10644bdfaef37b1b22ba8580a5a00222a597693
7
- data.tar.gz: 8aa5092ad31e0372595baf420020f8d953a500dce327cab67c9344221c7aceca230d4150ef11637304f8558eebcd7d32506ceb533a7de1f7e7647dd5c53dac96
6
+ metadata.gz: 9c73814b136ebb0a063d3c19b4eec1df87956dd3747ffa85af703cf69af7fec39dac13d76586c66a72aefb80eebfa2e7d89e97b01f0ca6f57a767bd343ab3521
7
+ data.tar.gz: 141ff54de362fee03d05f7f61c2e20d476d4c1a3ae55373374b369dc266338f53d6368920ed69d83c29925abc9f40a678f2d80890e749b005066daaa7524853b
data/lib/http/http.rb CHANGED
@@ -6,25 +6,25 @@ require "json"
6
6
  module Http
7
7
  # An http client
8
8
  class Client
9
- def call_post(_url, req_body, headers)
10
- http = Net::HTTP.new(_url.host, _url.port)
9
+ def call_post(url, req_body, headers)
10
+ http = Net::HTTP.new(url.host, url.port)
11
11
  http.use_ssl = true
12
- request = Net::HTTP::Post.new(_url.path, headers)
12
+ request = Net::HTTP::Post.new(url.path, headers)
13
13
  request.body = req_body unless req_body.nil?
14
14
  http.request(request)
15
15
  end
16
16
 
17
- def call_delete(_url, headers)
18
- http = Net::HTTP.new(_url.host, _url.port)
17
+ def call_delete(url, headers)
18
+ http = Net::HTTP.new(url.host, url.port)
19
19
  http.use_ssl = true
20
- request = Net::HTTP::Delete.new(_url.path, headers)
20
+ request = Net::HTTP::Delete.new(url.path, headers)
21
21
  http.request(request)
22
22
  end
23
23
 
24
- def call_get(_url, headers)
25
- http = Net::HTTP.new(_url.host, _url.port)
24
+ def call_get(url, headers)
25
+ http = Net::HTTP.new(url.host, url.port)
26
26
  http.use_ssl = true
27
- request = Net::HTTP::Get.new(_url.path, headers)
27
+ request = Net::HTTP::Get.new(url.path, headers)
28
28
  http.request(request)
29
29
  end
30
30
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Openai
4
4
  class Assistant < Openai::Base
5
- VERSION = "0.6.0"
5
+ VERSION = "0.7.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openai-assistant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - duonghds