Skip to content

Commit 4dc6ece

Browse files
authored
Merge branch 'main' into azure-token-provider
2 parents 0e788d0 + 3c9411f commit 4dc6ece

File tree

171 files changed

+20477
-3030
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

171 files changed

+20477
-3030
lines changed

.circleci/config.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
rubocop:
99
parallelism: 1
1010
docker:
11-
- image: cimg/ruby:3.1-node
11+
- image: cimg/ruby:3.2-node
1212
steps:
1313
- checkout
1414
- ruby/install-deps
@@ -43,3 +43,4 @@ workflows:
4343
- cimg/ruby:3.0-node
4444
- cimg/ruby:3.1-node
4545
- cimg/ruby:3.2-node
46+
- cimg/ruby:3.3-node

.gitignore

-5
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@
1010
/test/tmp/
1111
/test/version_tmp/
1212
/tmp/
13-
/.bundle/
14-
/.yardoc
15-
/_yardoc/
16-
/doc/
17-
1813

1914
# Used by dotenv library to load environment variables.
2015
.env

CHANGELOG.md

+73-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,77 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [7.1.0] - 2024-06-10
9+
10+
### Added
11+
12+
- Add new Vector Store endpoints - thanks to [@willywg](https://github.com/willywg) for this PR!
13+
- Add parameters to batches.list endpoint so you can for example use `after` - thanks to [@marckohlbrugge](https://github.com/marckohlbrugge)!
14+
- Add vision as permitted purpose for files - thanks again to [@willywg](https://github.com/willywg) for the PR.
15+
- Add improved README example of tool calling - thanks [@krschacht](https://github.com/krschacht) - check out his project [HostedGPT](https://github.com/AllYourBot/hostedgpt)!
16+
17+
### Fixed
18+
19+
- Fix broken link in README table of contents - thanks to [@garrettgsb](https://github.com/garrettgsb)!
20+
- Skip sending nil headers - thanks to [@drnic](https://github.com/drnic)!
21+
22+
## [7.0.1] - 2024-04-30
23+
24+
### Fixed
25+
26+
- Update to v2 of Assistants in Messages, Runs, RunSteps and Threads - thanks to [@willywg](https://github.com/willywg) and others for pointing this out.
27+
28+
## [7.0.0] - 2024-04-27
29+
30+
### Added
31+
32+
- Add support for Batches, thanks to [@simonx1](https://github.com/simonx1) for the PR!
33+
- Allow use of local LLMs like Ollama! Thanks to [@ThomasSevestre](https://github.com/ThomasSevestre)
34+
- Update to v2 of the Assistants beta & add documentation on streaming from an Assistant.
35+
- Add Assistants endpoint to create and run a thread in one go, thank you [@quocphien90](https://github.com/
36+
quocphien90)
37+
- Add missing parameters (order, limit, etc) to Runs, RunSteps and Messages - thanks to [@shalecraig](https://github.com/shalecraig) and [@coezbek](https://github.com/coezbek)
38+
- Add missing Messages#list spec - thanks [@adammeghji](https://github.com/adammeghji)
39+
- Add Messages#modify to README - thanks to [@nas887](https://github.com/nas887)
40+
- Don't add the api_version (`/v1/`) to base_uris that already include it - thanks to [@kaiwren](https://github.com/kaiwren) for raising this issue
41+
- Allow passing a `StringIO` to Files#upload - thanks again to [@simonx1](https://github.com/simonx1)
42+
- Add Ruby 3.3 to CI
43+
44+
### Security
45+
46+
- [BREAKING] ruby-openai will no longer log out API errors by default - you can reenable by passing `log_errors: true` to your client. This will help to prevent leaking secrets to logs. Thanks to [@lalunamel](https://github.com/lalunamel) for this PR.
47+
48+
### Removed
49+
50+
- [BREAKING] Remove deprecated edits endpoint.
51+
52+
### Fixed
53+
54+
- Fix README DALL·E 3 error - thanks to [@clayton](https://github.com/clayton)
55+
- Fix README tool_calls error and add missing tool_choice info - thanks to [@Jbrito6492](https://github.com/Jbrito6492)
56+
57+
## [6.5.0] - 2024-03-31
58+
59+
### Added
60+
61+
- Add back the deprecated Completions endpoint that I removed a bit prematurely. Thanks, [@mishranant](https://github.com/
62+
mishranant) and everyone who requested this.
63+
64+
## [6.4.0] - 2024-03-27
65+
66+
### Added
67+
68+
- Add DALL·E 3 to specs and README - thanks to [@Gary-H9](https://github.com/Gary-H9)
69+
- Add Whisper transcription language selection parameter to README - thanks to [@nfedyashev](https://github.com/nfedyashev)
70+
- Add bundle exec rake lint and bundle exec rake test to make development easier - thanks to [@ignacio-chiazzo](https://github.com/ignacio-chiazzo)
71+
- Add link to [https://github.com/sponsors/alexrudall](https://github.com/sponsors/alexrudall) when users run `bundle fund`
72+
73+
### Fixed
74+
75+
- Update README and spec to use tool calls instead of functions - thanks to [@mpallenjr](https://github.com/mpallenjr)
76+
- Remove nonexistent Thread#list method - thanks again! to [@ignacio-chiazzo](https://github.com/ignacio-chiazzo)
77+
- Update finetunes docs in README to use chat instead of completions endpoint - thanks to [@blefev](https://github.com/blefev)
78+
879
## [6.3.1] - 2023-12-04
980

1081
### Fixed
@@ -45,13 +116,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
45116
- [BREAKING] Switch from legacy Finetunes to the new Fine-tune-jobs endpoints. Implemented by [@lancecarlson](https://github.com/lancecarlson)
46117
- [BREAKING] Remove deprecated Completions endpoints - use Chat instead.
47118

48-
### Fix
119+
### Fixed
49120

50121
- [BREAKING] Fix issue where :stream parameters were replaced by a boolean in the client application. Thanks to [@martinjaimem](https://github.com/martinjaimem), [@vickymadrid03](https://github.com/vickymadrid03) and [@nicastelo](https://github.com/nicastelo) for spotting and fixing this issue.
51122

52123
## [5.2.0] - 2023-10-30
53124

54-
### Fix
125+
### Fixed
55126

56127
- Added more spec-compliant SSE parsing: see here https://html.spec.whatwg.org/multipage/server-sent-events.html#event-stream-interpretation
57128
- Fixes issue where OpenAI or an intermediary returns only partial JSON per chunk of streamed data

Gemfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ gemspec
55

66
gem "byebug", "~> 11.1.3"
77
gem "dotenv", "~> 2.8.1"
8-
gem "rake", "~> 13.1"
9-
gem "rspec", "~> 3.12"
8+
gem "rake", "~> 13.2"
9+
gem "rspec", "~> 3.13"
1010
gem "rubocop", "~> 1.50.2"
1111
gem "vcr", "~> 6.1.0"
12-
gem "webmock", "~> 3.19.1"
12+
gem "webmock", "~> 3.23.1"

Gemfile.lock

+28-24
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,58 @@
11
PATH
22
remote: .
33
specs:
4-
ruby-openai (6.3.1)
4+
ruby-openai (7.1.0)
55
event_stream_parser (>= 0.3.0, < 2.0.0)
66
faraday (>= 1)
77
faraday-multipart (>= 1)
88

99
GEM
1010
remote: https://rubygems.org/
1111
specs:
12-
addressable (2.8.5)
12+
addressable (2.8.6)
1313
public_suffix (>= 2.0.2, < 6.0)
1414
ast (2.4.2)
1515
base64 (0.2.0)
16+
bigdecimal (3.1.8)
1617
byebug (11.1.3)
17-
crack (0.4.5)
18+
crack (1.0.0)
19+
bigdecimal
1820
rexml
19-
diff-lcs (1.5.0)
21+
diff-lcs (1.5.1)
2022
dotenv (2.8.1)
2123
event_stream_parser (1.0.0)
22-
faraday (2.7.12)
24+
faraday (2.8.1)
2325
base64
2426
faraday-net_http (>= 2.0, < 3.1)
2527
ruby2_keywords (>= 0.0.4)
2628
faraday-multipart (1.0.4)
2729
multipart-post (~> 2)
2830
faraday-net_http (3.0.2)
29-
hashdiff (1.0.1)
31+
hashdiff (1.1.0)
3032
json (2.6.3)
3133
multipart-post (2.3.0)
3234
parallel (1.22.1)
3335
parser (3.2.2.0)
3436
ast (~> 2.4.1)
35-
public_suffix (5.0.3)
37+
public_suffix (5.0.5)
3638
rainbow (3.1.1)
37-
rake (13.1.0)
39+
rake (13.2.1)
3840
regexp_parser (2.8.0)
39-
rexml (3.2.6)
40-
rspec (3.12.0)
41-
rspec-core (~> 3.12.0)
42-
rspec-expectations (~> 3.12.0)
43-
rspec-mocks (~> 3.12.0)
44-
rspec-core (3.12.0)
45-
rspec-support (~> 3.12.0)
46-
rspec-expectations (3.12.2)
41+
rexml (3.2.9)
42+
strscan
43+
rspec (3.13.0)
44+
rspec-core (~> 3.13.0)
45+
rspec-expectations (~> 3.13.0)
46+
rspec-mocks (~> 3.13.0)
47+
rspec-core (3.13.0)
48+
rspec-support (~> 3.13.0)
49+
rspec-expectations (3.13.0)
4750
diff-lcs (>= 1.2.0, < 2.0)
48-
rspec-support (~> 3.12.0)
49-
rspec-mocks (3.12.3)
51+
rspec-support (~> 3.13.0)
52+
rspec-mocks (3.13.0)
5053
diff-lcs (>= 1.2.0, < 2.0)
51-
rspec-support (~> 3.12.0)
52-
rspec-support (3.12.0)
54+
rspec-support (~> 3.13.0)
55+
rspec-support (3.13.1)
5356
rubocop (1.50.2)
5457
json (~> 2.3)
5558
parallel (~> 1.10)
@@ -64,9 +67,10 @@ GEM
6467
parser (>= 3.2.1.0)
6568
ruby-progressbar (1.13.0)
6669
ruby2_keywords (0.0.5)
70+
strscan (3.1.0)
6771
unicode-display_width (2.4.2)
6872
vcr (6.1.0)
69-
webmock (3.19.1)
73+
webmock (3.23.1)
7074
addressable (>= 2.8.0)
7175
crack (>= 0.3.2)
7276
hashdiff (>= 0.4.0, < 2.0.0)
@@ -77,12 +81,12 @@ PLATFORMS
7781
DEPENDENCIES
7882
byebug (~> 11.1.3)
7983
dotenv (~> 2.8.1)
80-
rake (~> 13.1)
81-
rspec (~> 3.12)
84+
rake (~> 13.2)
85+
rspec (~> 3.13)
8286
rubocop (~> 1.50.2)
8387
ruby-openai!
8488
vcr (~> 6.1.0)
85-
webmock (~> 3.19.1)
89+
webmock (~> 3.23.1)
8690

8791
BUNDLED WITH
8892
2.4.5

0 commit comments

Comments
 (0)