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 +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/openai/internal/util.rb +5 -1
- data/lib/openai/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c07c6ffe0bed902c877c2c49c557a4f85cc8c6b5f291ed4534a3bb9052347e14
|
4
|
+
data.tar.gz: bcaf9ac1e1d62e51b0c17af965887ccc8e479278e79bfcd932b84b92dc180778
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/lib/openai/internal/util.rb
CHANGED
@@ -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
|
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
|
data/lib/openai/version.rb
CHANGED
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.
|
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:
|
1533
|
+
version: '0'
|
1534
1534
|
requirements: []
|
1535
1535
|
rubygems_version: 3.4.19
|
1536
1536
|
signing_key:
|