openai 0.4.0.pre.beta.1 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6e25a560044079c0753b06bce85ecbec361fbf555851a128040786b0174be392
4
- data.tar.gz: 1b555d9f479f09fa38d1a9e0fbdc778fe524027a100cf127f1dc7664f2e5155e
3
+ metadata.gz: c07c6ffe0bed902c877c2c49c557a4f85cc8c6b5f291ed4534a3bb9052347e14
4
+ data.tar.gz: bcaf9ac1e1d62e51b0c17af965887ccc8e479278e79bfcd932b84b92dc180778
5
5
  SHA512:
6
- metadata.gz: c17127951f806c5ee717e90ada0d72f9080ce42ae7ca7630cb634673f262fd80e60fdd4923e7c4e6ee9651fd8dae5e3fe6552ac6c3132aee834eb54f11e64311
7
- data.tar.gz: f2d6d5000a1e1e8207f6175f598b35d4de8e17810fcdf28324aa0d23af1189a8fd324cac3f6c2d0806c88d6a599275c99143ba3c24fd8c3a3ee0ae99a6df36c0
6
+ metadata.gz: 8582a8bf14c6f8639f4301d5c35cc012fb56cb4cc7b16b496f57013e3da8945296857de33c7b8e651726d4ea334b718a23c77dd4c3375c4a230b34e6742787a9
7
+ data.tar.gz: 8e91eac55ebe1a1d4c08de1cf2d90a97526d84ed229143cfa73845cc231a7b2cd4f25d5dc91b3ed0295c5470bc4b96da6a99508ab557ba9ac8c4b084ebcdeb59
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.1 (2025-05-23)
4
+
5
+ Full Changelog: [v0.4.0-beta.1...v0.4.1](https://github.com/openai/openai-ruby/compare/v0.4.0-beta.1...v0.4.1)
6
+
7
+ ### Bug Fixes
8
+
9
+ * prevent rubocop from mangling `===` to `is_a?` check ([c3a61c9](https://github.com/openai/openai-ruby/commit/c3a61c9f83b8cb79b41edadadca1a241de03d10f))
10
+
3
11
  ## 0.4.0-beta.1 (2025-05-23)
4
12
 
5
13
  Full Changelog: [v0.1.0-beta.2...v0.4.0-beta.1](https://github.com/openai/openai-ruby/compare/v0.1.0-beta.2...v0.4.0-beta.1)
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "openai", "~> 0.4.0.pre.beta.1"
18
+ gem "openai", "~> 0.4.1"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -600,11 +600,13 @@ module OpenAI
600
600
  #
601
601
  # @return [Object]
602
602
  def encode_content(headers, body)
603
+ # rubocop:disable Style/CaseEquality
604
+ # rubocop:disable Layout/LineLength
603
605
  content_type = headers["content-type"]
604
606
  case [content_type, body]
605
607
  in [OpenAI::Internal::Util::JSON_CONTENT, Hash | Array | -> { primitive?(_1) }]
606
608
  [headers, JSON.generate(body)]
607
- in [OpenAI::Internal::Util::JSONL_CONTENT, Enumerable] unless body.is_a?(OpenAI::Internal::Type::FileInput)
609
+ in [OpenAI::Internal::Util::JSONL_CONTENT, Enumerable] unless OpenAI::Internal::Type::FileInput === body
608
610
  [headers, body.lazy.map { JSON.generate(_1) }]
609
611
  in [%r{^multipart/form-data}, Hash | OpenAI::Internal::Type::FileInput]
610
612
  boundary, strio = encode_multipart_streaming(body)
@@ -619,6 +621,8 @@ module OpenAI
619
621
  else
620
622
  [headers, body]
621
623
  end
624
+ # rubocop:enable Layout/LineLength
625
+ # rubocop:enable Style/CaseEquality
622
626
  end
623
627
 
624
628
  # @api private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OpenAI
4
- VERSION = "0.4.0.pre.beta.1"
4
+ VERSION = "0.4.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openai
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0.pre.beta.1
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAI
@@ -1528,9 +1528,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
1528
1528
  version: 3.2.0
1529
1529
  required_rubygems_version: !ruby/object:Gem::Requirement
1530
1530
  requirements:
1531
- - - ">"
1531
+ - - ">="
1532
1532
  - !ruby/object:Gem::Version
1533
- version: 1.3.1
1533
+ version: '0'
1534
1534
  requirements: []
1535
1535
  rubygems_version: 3.4.19
1536
1536
  signing_key: