Skip to content

Commit 7918c41

Browse files
authored
Merge branch 'main' into support-azure-openai-assistants
2 parents e6d2dc1 + 0a897ba commit 7918c41

File tree

122 files changed

+15940
-2997
lines changed

Some content is hidden

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

122 files changed

+15940
-2997
lines changed

.circleci/config.yml

Lines changed: 2 additions & 1 deletion
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

CHANGELOG.md

Lines changed: 59 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,63 @@ 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.0.1] - 2024-04-30
9+
10+
### Fixed
11+
12+
- Update to v2 of Assistants in Messages, Runs, RunSteps and Threads - thanks to [@willywg](https://github.com/willywg) and others for pointing this out.
13+
14+
## [7.0.0] - 2024-04-27
15+
16+
### Added
17+
18+
- Add support for Batches, thanks to [@simonx1](https://github.com/simonx1) for the PR!
19+
- Allow use of local LLMs like Ollama! Thanks to [@ThomasSevestre](https://github.com/ThomasSevestre)
20+
- Update to v2 of the Assistants beta & add documentation on streaming from an Assistant.
21+
- Add Assistants endpoint to create and run a thread in one go, thank you [@quocphien90](https://github.com/
22+
quocphien90)
23+
- Add missing parameters (order, limit, etc) to Runs, RunSteps and Messages - thanks to [@shalecraig](https://github.com/shalecraig) and [@coezbek](https://github.com/coezbek)
24+
- Add missing Messages#list spec - thanks [@adammeghji](https://github.com/adammeghji)
25+
- Add Messages#modify to README - thanks to [@nas887](https://github.com/nas887)
26+
- 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
27+
- Allow passing a `StringIO` to Files#upload - thanks again to [@simonx1](https://github.com/simonx1)
28+
- Add Ruby 3.3 to CI
29+
30+
### Security
31+
32+
- [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.
33+
34+
### Removed
35+
36+
- [BREAKING] Remove deprecated edits endpoint.
37+
38+
### Fixed
39+
40+
- Fix README DALL·E 3 error - thanks to [@clayton](https://github.com/clayton)
41+
- Fix README tool_calls error and add missing tool_choice info - thanks to [@Jbrito6492](https://github.com/Jbrito6492)
42+
43+
## [6.5.0] - 2024-03-31
44+
45+
### Added
46+
47+
- Add back the deprecated Completions endpoint that I removed a bit prematurely. Thanks, [@mishranant](https://github.com/
48+
mishranant) and everyone who requested this.
49+
50+
## [6.4.0] - 2024-03-27
51+
52+
### Added
53+
54+
- Add DALL·E 3 to specs and README - thanks to [@Gary-H9](https://github.com/Gary-H9)
55+
- Add Whisper transcription language selection parameter to README - thanks to [@nfedyashev](https://github.com/nfedyashev)
56+
- Add bundle exec rake lint and bundle exec rake test to make development easier - thanks to [@ignacio-chiazzo](https://github.com/ignacio-chiazzo)
57+
- Add link to [https://github.com/sponsors/alexrudall](https://github.com/sponsors/alexrudall) when users run `bundle fund`
58+
59+
### Fixed
60+
61+
- Update README and spec to use tool calls instead of functions - thanks to [@mpallenjr](https://github.com/mpallenjr)
62+
- Remove nonexistent Thread#list method - thanks again! to [@ignacio-chiazzo](https://github.com/ignacio-chiazzo)
63+
- Update finetunes docs in README to use chat instead of completions endpoint - thanks to [@blefev](https://github.com/blefev)
64+
865
## [6.3.1] - 2023-12-04
966

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

48-
### Fix
105+
### Fixed
49106

50107
- [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.
51108

52109
## [5.2.0] - 2023-10-30
53110

54-
### Fix
111+
### Fixed
55112

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

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ gemspec
66
gem "byebug", "~> 11.1.3"
77
gem "dotenv", "~> 2.8.1"
88
gem "rake", "~> 13.1"
9-
gem "rspec", "~> 3.12"
9+
gem "rspec", "~> 3.13"
1010
gem "rubocop", "~> 1.50.2"
1111
gem "vcr", "~> 6.1.0"
1212
gem "webmock", "~> 3.19.1"

Gemfile.lock

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
ruby-openai (6.3.1)
4+
ruby-openai (7.0.1)
55
event_stream_parser (>= 0.3.0, < 2.0.0)
66
faraday (>= 1)
77
faraday-multipart (>= 1)
@@ -16,10 +16,10 @@ GEM
1616
byebug (11.1.3)
1717
crack (0.4.5)
1818
rexml
19-
diff-lcs (1.5.0)
19+
diff-lcs (1.5.1)
2020
dotenv (2.8.1)
2121
event_stream_parser (1.0.0)
22-
faraday (2.7.12)
22+
faraday (2.8.1)
2323
base64
2424
faraday-net_http (>= 2.0, < 3.1)
2525
ruby2_keywords (>= 0.0.4)
@@ -37,19 +37,19 @@ GEM
3737
rake (13.1.0)
3838
regexp_parser (2.8.0)
3939
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)
40+
rspec (3.13.0)
41+
rspec-core (~> 3.13.0)
42+
rspec-expectations (~> 3.13.0)
43+
rspec-mocks (~> 3.13.0)
44+
rspec-core (3.13.0)
45+
rspec-support (~> 3.13.0)
46+
rspec-expectations (3.13.0)
4747
diff-lcs (>= 1.2.0, < 2.0)
48-
rspec-support (~> 3.12.0)
49-
rspec-mocks (3.12.3)
48+
rspec-support (~> 3.13.0)
49+
rspec-mocks (3.13.0)
5050
diff-lcs (>= 1.2.0, < 2.0)
51-
rspec-support (~> 3.12.0)
52-
rspec-support (3.12.0)
51+
rspec-support (~> 3.13.0)
52+
rspec-support (3.13.1)
5353
rubocop (1.50.2)
5454
json (~> 2.3)
5555
parallel (~> 1.10)
@@ -78,7 +78,7 @@ DEPENDENCIES
7878
byebug (~> 11.1.3)
7979
dotenv (~> 2.8.1)
8080
rake (~> 13.1)
81-
rspec (~> 3.12)
81+
rspec (~> 3.13)
8282
rubocop (~> 1.50.2)
8383
ruby-openai!
8484
vcr (~> 6.1.0)

0 commit comments

Comments
 (0)