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 +4 -4
- data/.rubocop.yml +4 -1
- data/README.md +6 -1
- data/lib/openai/assistant/version.rb +1 -1
- data/lib/openai/assistant.rb +0 -3
- 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: 47c4f3c25796b691c23177c0305accd4d4eb10d13f3d5dd8d5828d6070a7f801
|
4
|
+
data.tar.gz: 22cdf48b820eed695c042ecb9f5892ff8cc05c78547a6d98c95de0a7591c1435
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be4e756a8888af5c0b1f0247a6a17bd1e02cbdc636f43f28b84c2a7c91dd1644d981357c8ead3d81b6cb5831f35b220a6e881d8fbefb5aaa36f0349130995ff9
|
7
|
+
data.tar.gz: 25566590081132fb1526f6970a472b2ca348881931e8052270aad14557fa53fb6e3020f56705866ed488dac04947d69bba7c32ea3b99f5eb3c3f355c0fc1f65a
|
data/.rubocop.yml
CHANGED
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/
|
data/lib/openai/assistant.rb
CHANGED
@@ -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
|
|