simple-openai-client 1.0.1 → 1.0.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f74224909a064fa0ba25d56108c5bc5b25dfd0401c4e3c7079d1c3dbe083666
|
4
|
+
data.tar.gz: 7e6beb0d851934c9565591520037c17d8708f678389dcdfaaf71a1b7dd911183
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85019b0bf9eec3256e428101157aaec486783b48c50159de6b07d0e661c83205facfc3c72652bf9abebc129d4f48b6b59200480ec755a186c4780eefc4b814e0
|
7
|
+
data.tar.gz: 4c7dd3ac4c6307af55fc78029004e0997f95a97756f3a43b3426b5f6d241090d5c2cac9d4b17ab4d6bc836fe1b35967ad55f9c949344bf796b3bb88d2ac984c1
|
@@ -121,7 +121,7 @@ class OpenAIClient
|
|
121
121
|
|
122
122
|
follow_up_request = Net::HTTP::Post.new(follow_up_uri.path, {
|
123
123
|
"Content-Type" => "application/json",
|
124
|
-
"Authorization" => "Bearer #{
|
124
|
+
"Authorization" => "Bearer #{self.api_key}",
|
125
125
|
"OpenAI-Beta" => "assistants=#{version}"
|
126
126
|
})
|
127
127
|
follow_up_request.body = JSON.dump(follow_up_request_body)
|
@@ -1,16 +1,16 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'simple-openai-client'
|
3
|
-
s.version = '1.0.
|
3
|
+
s.version = '1.0.3'
|
4
4
|
s.date = '2025-01-05'
|
5
5
|
s.summary = "Very simple Ruby library for operating OpenAI API for building Agents."
|
6
6
|
s.description = "Very simple Ruby library for operating OpenAI API for building Agents."
|
7
7
|
s.authors = ["Leandro Daniel Sardi"]
|
8
8
|
s.email = 'leandro@massprospecting.com'
|
9
9
|
s.files = [
|
10
|
-
'lib/openai-client.rb',
|
11
|
-
'openai-client.gemspec'
|
10
|
+
'lib/simple-openai-client.rb',
|
11
|
+
'simple-openai-client.gemspec'
|
12
12
|
]
|
13
|
-
s.homepage = 'https://github.com/leandrosardi/openai-client'
|
13
|
+
s.homepage = 'https://github.com/leandrosardi/simple-openai-client'
|
14
14
|
s.license = 'MIT'
|
15
15
|
s.add_runtime_dependency 'uri', '~> 0.11.2', '>= 0.11.2'
|
16
16
|
s.add_runtime_dependency 'net-http', '~> 0.2.0', '>= 0.2.0'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple-openai-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leandro Daniel Sardi
|
@@ -136,9 +136,9 @@ executables: []
|
|
136
136
|
extensions: []
|
137
137
|
extra_rdoc_files: []
|
138
138
|
files:
|
139
|
-
- lib/openai-client.rb
|
140
|
-
- openai-client.gemspec
|
141
|
-
homepage: https://github.com/leandrosardi/openai-client
|
139
|
+
- lib/simple-openai-client.rb
|
140
|
+
- simple-openai-client.gemspec
|
141
|
+
homepage: https://github.com/leandrosardi/simple-openai-client
|
142
142
|
licenses:
|
143
143
|
- MIT
|
144
144
|
metadata: {}
|