Skip to content

Commit 580346e

Browse files
authored
Merge pull request #532 from alexrudall/7.3.1
Fix for Azure & Client#embeddings 404s
2 parents a5714d3 + c5631c1 commit 580346e

15 files changed

+202
-222
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ 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.3.1] - 2024-10-15
9+
10+
### Fixed
11+
12+
- Fix 404 error when using Client#embeddings with Azure - thanks to [@ymtdzzz](https://github.com/ymtdzzz) for raising this in a really clear issue.
13+
814
## [7.3.0] - 2024-10-11
915

1016
### Added

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
ruby-openai (7.3.0)
4+
ruby-openai (7.3.1)
55
event_stream_parser (>= 0.3.0, < 2.0.0)
66
faraday (>= 1)
77
faraday-multipart (>= 1)

lib/openai/http.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def post(path:)
2121
def json_post(path:, parameters:, query_parameters: {})
2222
conn.post(uri(path: path)) do |req|
2323
configure_json_post_request(req, parameters)
24-
req.params = query_parameters
24+
req.params = req.params.merge(query_parameters)
2525
end&.body
2626
end
2727

lib/openai/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module OpenAI
2-
VERSION = "7.3.0".freeze
2+
VERSION = "7.3.1".freeze
33
end

spec/fixtures/cassettes/finetunes_create.yml

Lines changed: 21 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/fixtures/cassettes/finetunes_files_upload.yml

Lines changed: 17 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/fixtures/cassettes/finetunes_retrieve_for_create.yml

Lines changed: 14 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/fixtures/cassettes/gpt-3_5-turbo-0301_chat.yml

Lines changed: 0 additions & 106 deletions
This file was deleted.

0 commit comments

Comments
 (0)