openai-assistant 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e4ddb6b9bd825412979c3e7a33935200236dff748ce439c8c5ac29fb7dfadc6c
4
- data.tar.gz: c0c4fa73e072bfc18daa545ce8b06243d581adc3a5d948ffad68e311016de6c6
3
+ metadata.gz: 47c4f3c25796b691c23177c0305accd4d4eb10d13f3d5dd8d5828d6070a7f801
4
+ data.tar.gz: 22cdf48b820eed695c042ecb9f5892ff8cc05c78547a6d98c95de0a7591c1435
5
5
  SHA512:
6
- metadata.gz: 67d7e18366125045cfbdb2180955b337a31b361eb8079c118a8fa8ca919b9d78878bf7879d910a2d942fdb3d5d85a23adbbf67d276974caf86d3c0c5223e0e7a
7
- data.tar.gz: e3dab4d30f625f79d93f424641640f74089915b103dc7e2fa32d1995f29fdd5805cd402b73e639db6eef70f8b8c608dd36f669a3e9b41847997bf686480b3ee8
6
+ metadata.gz: be4e756a8888af5c0b1f0247a6a17bd1e02cbdc636f43f28b84c2a7c91dd1644d981357c8ead3d81b6cb5831f35b220a6e881d8fbefb5aaa36f0349130995ff9
7
+ data.tar.gz: 25566590081132fb1526f6970a472b2ca348881931e8052270aad14557fa53fb6e3020f56705866ed488dac04947d69bba7c32ea3b99f5eb3c3f355c0fc1f65a
data/.rubocop.yml CHANGED
@@ -16,4 +16,7 @@ Metrics/MethodLength:
16
16
  Max: 100
17
17
 
18
18
  Metrics/BlockLength:
19
- Max: 100
19
+ Max: 100
20
+
21
+ Metrics/ClassLength:
22
+ Max: 500
data/README.md CHANGED
@@ -22,4 +22,9 @@ You can direct interact with gem by:
22
22
 
23
23
  + `instance.delete_assistant(assistant_id)`
24
24
 
25
- + `instance.list_assistant()`
25
+ + `instance.list_assistant()`
26
+
27
+ ## Reference
28
+ - source: https://github.com/duonghds24/openai-assistant
29
+ - gem: https://rubygems.org/gems/openai-assistant
30
+ - document: https://www.rubydoc.info/gems/openai-assistant/
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Openai
4
4
  class Assistant
5
- VERSION = "0.3.0"
5
+ VERSION = "0.4.0"
6
6
  end
7
7
  end
@@ -2,7 +2,6 @@
2
2
 
3
3
  require_relative "assistant/version"
4
4
  require_relative "assistant_obj"
5
- require "uri"
6
5
  require "json"
7
6
  require "net/http"
8
7
  require "rest-client"
@@ -23,8 +22,6 @@ module Openai
23
22
  # @param api_key [String] The api key of openai
24
23
  def self.setup(api_key = "")
25
24
  @openai_api_key = api_key
26
- # hard the host because if the official docs change the host, maybe it will change another
27
- # we need to update this gem for any change
28
25
  @openai_url = "https://api.openai.com/v1/assistants"
29
26
  end
30
27
 
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.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - duonghds