ruby-openai 7.3.1 → 7.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/CHANGELOG.md +7 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +8 -10
- data/README.md +447 -265
- data/lib/openai/client.rb +19 -11
- data/lib/openai/compatibility.rb +1 -0
- data/lib/openai/usage.rb +70 -0
- data/lib/openai/version.rb +1 -1
- data/lib/openai.rb +4 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 636458da173c91f143246acd3a13d2092345cfe9c2ad8b0496b4b5520f215272
|
4
|
+
data.tar.gz: 7705418143eccf24f1b4bc97abab406919ac7297e130bbdde498081ad3539b61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2f6e3b4b275283e526bec8e68743156cd80840309d66050b74d1ab493695fcd6099fa0383f8b462cb6369af2a6118a8d83dd899e4d8a6a29e2d801ea9ecddd1
|
7
|
+
data.tar.gz: 9e26a6e2b5a0b6f8b05ad7bb5c0799fa3a85aa96e772c020bd33332bf476b45c40a8d3574c7b11d057889d39040efb9d87e80bfb5932bf604f19cdef8122b05b
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
+
## [7.4.0] - 2024-02-10
|
9
|
+
|
10
|
+
### Added
|
11
|
+
|
12
|
+
- Add support for OPENAI_ADMIN_TOKEN to allow for administrative endpoints to be called.
|
13
|
+
- Add support for Usage endpoints.
|
14
|
+
|
8
15
|
## [7.3.1] - 2024-10-15
|
9
16
|
|
10
17
|
### Fixed
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ruby-openai (7.
|
4
|
+
ruby-openai (7.4.0)
|
5
5
|
event_stream_parser (>= 0.3.0, < 2.0.0)
|
6
6
|
faraday (>= 1)
|
7
7
|
faraday-multipart (>= 1)
|
@@ -9,8 +9,8 @@ PATH
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
addressable (2.8.
|
13
|
-
public_suffix (>= 2.0.2, <
|
12
|
+
addressable (2.8.7)
|
13
|
+
public_suffix (>= 2.0.2, < 7.0)
|
14
14
|
ast (2.4.2)
|
15
15
|
base64 (0.2.0)
|
16
16
|
bigdecimal (3.1.8)
|
@@ -28,18 +28,17 @@ GEM
|
|
28
28
|
faraday-multipart (1.0.4)
|
29
29
|
multipart-post (~> 2)
|
30
30
|
faraday-net_http (3.0.2)
|
31
|
-
hashdiff (1.1.
|
31
|
+
hashdiff (1.1.1)
|
32
32
|
json (2.6.3)
|
33
33
|
multipart-post (2.3.0)
|
34
34
|
parallel (1.22.1)
|
35
35
|
parser (3.2.2.0)
|
36
36
|
ast (~> 2.4.1)
|
37
|
-
public_suffix (5.
|
37
|
+
public_suffix (5.1.1)
|
38
38
|
rainbow (3.1.1)
|
39
39
|
rake (13.2.1)
|
40
40
|
regexp_parser (2.8.0)
|
41
|
-
rexml (3.3.
|
42
|
-
strscan
|
41
|
+
rexml (3.3.9)
|
43
42
|
rspec (3.13.0)
|
44
43
|
rspec-core (~> 3.13.0)
|
45
44
|
rspec-expectations (~> 3.13.0)
|
@@ -67,10 +66,9 @@ GEM
|
|
67
66
|
parser (>= 3.2.1.0)
|
68
67
|
ruby-progressbar (1.13.0)
|
69
68
|
ruby2_keywords (0.0.5)
|
70
|
-
strscan (3.1.0)
|
71
69
|
unicode-display_width (2.4.2)
|
72
70
|
vcr (6.1.0)
|
73
|
-
webmock (3.
|
71
|
+
webmock (3.24.0)
|
74
72
|
addressable (>= 2.8.0)
|
75
73
|
crack (>= 0.3.2)
|
76
74
|
hashdiff (>= 0.4.0, < 2.0.0)
|
@@ -86,7 +84,7 @@ DEPENDENCIES
|
|
86
84
|
rubocop (~> 1.50.2)
|
87
85
|
ruby-openai!
|
88
86
|
vcr (~> 6.1.0)
|
89
|
-
webmock (~> 3.
|
87
|
+
webmock (~> 3.24.0)
|
90
88
|
|
91
89
|
BUNDLED WITH
|
92
90
|
2.4.5
|