ruby-openai 7.3.0 → 7.3.1

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: 278f25c283d841bfa33614bd69b4340b9275712b83e9121a1aa2a6a439767714
4
- data.tar.gz: 702c11ba4b0411a47e9d6f9fdb178d1eb40a7baede5909f0665b41edc00797b0
3
+ metadata.gz: 81b77c3ad0c06f3dc20d9902e136e8f5cde83ab6073fd421d3cf8ba0fb84d7b1
4
+ data.tar.gz: e61927396de52b29f7de6fdaf4271715afaff51ef3c27f3bf9316673af31ad48
5
5
  SHA512:
6
- metadata.gz: 7c4a1bdb8fd3f466808f740112c3223a04da5ef73fd355b5f2136ecf28f5be2968ec4ecced5db25833878ba7e9de1f63e063529580f86d269c7bdd82f7e77df9
7
- data.tar.gz: '014855034340e14ac2e78c845ae791f619dedf636c9839ce5edc2ea27d7eb54e973dbe4a41998b41d1e89c2c56ce04cd2c062c90bdc87b858b7467005e78100c'
6
+ metadata.gz: 4f7849cb0907df734b1f37fe5eac6c7353ce06dcf2ed31571e45548944d848ca87b7b1ab4916dc021216ed96c17b4d415d749981620bc65c1efc575aff084ab3
7
+ data.tar.gz: eaf47c514add119c4b1ee3f6efedc965f239f5fe57ef9232f834de62834364249ecd02beb86126ddc38c2a0757239c54f02c5a6839b9544214cec09ce0723690
data/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ 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.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
+
8
14
  ## [7.3.0] - 2024-10-11
9
15
 
10
16
  ### Added
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby-openai (7.3.0)
4
+ ruby-openai (7.3.1)
5
5
  event_stream_parser (>= 0.3.0, < 2.0.0)
6
6
  faraday (>= 1)
7
7
  faraday-multipart (>= 1)
data/README.md CHANGED
@@ -50,6 +50,7 @@ Stream text with GPT-4o, transcribe and translate audio with Whisper, or create
50
50
  - [Runs](#runs)
51
51
  - [Create and Run](#create-and-run)
52
52
  - [Runs involving function tools](#runs-involving-function-tools)
53
+ - [Exploring chunks used in File Search](#exploring-chunks-used-in-file-search)
53
54
  - [Image Generation](#image-generation)
54
55
  - [DALL·E 2](#dalle-2)
55
56
  - [DALL·E 3](#dalle-3)
@@ -1115,7 +1116,7 @@ Note that you have 10 minutes to submit your tool output before the run expires.
1115
1116
 
1116
1117
  Take a deep breath. You might need a drink for this one.
1117
1118
 
1118
- It's possible for OpenAI to share what chunks it used in its internal RAG Pipeline to create its filesearch example.
1119
+ It's possible for OpenAI to share what chunks it used in its internal RAG Pipeline to create its filesearch results.
1119
1120
 
1120
1121
  An example spec can be found [here](https://github.com/alexrudall/ruby-openai/blob/main/spec/openai/client/assistant_file_search_spec.rb) that does this, just so you know it's possible.
1121
1122
 
@@ -1191,9 +1192,6 @@ steps = client.run_steps.list(
1191
1192
  parameters: { order: "asc" }
1192
1193
  )
1193
1194
 
1194
- # Get the last step ID (or whichever one you want to look at)
1195
- step_id = steps["data"].first["id"]
1196
-
1197
1195
  # Retrieve all the steps. Include the "GIVE ME THE CHUNKS" incantation again.
1198
1196
  steps = steps["data"].map do |step|
1199
1197
  client.run_steps.retrieve(
data/lib/openai/http.rb CHANGED
@@ -21,7 +21,7 @@ module OpenAI
21
21
  def json_post(path:, parameters:, query_parameters: {})
22
22
  conn.post(uri(path: path)) do |req|
23
23
  configure_json_post_request(req, parameters)
24
- req.params = query_parameters
24
+ req.params = req.params.merge(query_parameters)
25
25
  end&.body
26
26
  end
27
27
 
@@ -1,3 +1,3 @@
1
1
  module OpenAI
2
- VERSION = "7.3.0".freeze
2
+ VERSION = "7.3.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-openai
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.3.0
4
+ version: 7.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-11 00:00:00.000000000 Z
11
+ date: 2024-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: event_stream_parser