openai 0.35.0 → 0.35.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/models/responses/response_output_text.rb +8 -8
- data/lib/openai/version.rb +1 -1
- data/rbi/openai/models/responses/response_output_text.rbi +19 -10
- data/sig/openai/models/responses/response_output_text.rbs +11 -7
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 07be6bea1a531ce6245b72aa45682ff1485fdc40ea05cab7ad9731aae8e4496e
|
|
4
|
+
data.tar.gz: aeb5a58556e34b61646e985f432c9f250cbc0259916eb5ebdecbec34c1f853a0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e41f0e47371787755d2b8fc3370285c873ec19aa12995d679c03b804d9be73ecee94de61ff1321c60722a09244262364371ec1db64ad4cf96fafbdfdf2c70c39
|
|
7
|
+
data.tar.gz: 371503bbcc663eab6ee955c26b328837a2e952004cfcd7a219ca9b913edffe5c3658f7a3d15d8e3dc3bcc00d2376b09f39758f3465d73289f10d5b3cf757692c
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.35.1 (2025-11-04)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.35.0...v0.35.1](https://github.com/openai/openai-ruby/compare/v0.35.0...v0.35.1)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* **api:** fix nullability of logprobs ([adead66](https://github.com/openai/openai-ruby/commit/adead661c71c8c5f6420bbafc5fa5b188758ddc5))
|
|
10
|
+
|
|
3
11
|
## 0.35.0 (2025-11-03)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.34.1...v0.35.0](https://github.com/openai/openai-ruby/compare/v0.34.1...v0.35.0)
|
data/README.md
CHANGED
|
@@ -11,11 +11,6 @@ module OpenAI
|
|
|
11
11
|
required :annotations,
|
|
12
12
|
-> { OpenAI::Internal::Type::ArrayOf[union: OpenAI::Responses::ResponseOutputText::Annotation] }
|
|
13
13
|
|
|
14
|
-
# @!attribute logprobs
|
|
15
|
-
#
|
|
16
|
-
# @return [Array<OpenAI::Models::Responses::ResponseOutputText::Logprob>]
|
|
17
|
-
required :logprobs, -> { OpenAI::Internal::Type::ArrayOf[OpenAI::Responses::ResponseOutputText::Logprob] }
|
|
18
|
-
|
|
19
14
|
# @!attribute text
|
|
20
15
|
# The text output from the model.
|
|
21
16
|
#
|
|
@@ -36,15 +31,20 @@ module OpenAI
|
|
|
36
31
|
# @return [Symbol, :output_text]
|
|
37
32
|
required :type, const: :output_text
|
|
38
33
|
|
|
39
|
-
# @!
|
|
34
|
+
# @!attribute logprobs
|
|
35
|
+
#
|
|
36
|
+
# @return [Array<OpenAI::Models::Responses::ResponseOutputText::Logprob>, nil]
|
|
37
|
+
optional :logprobs, -> { OpenAI::Internal::Type::ArrayOf[OpenAI::Responses::ResponseOutputText::Logprob] }
|
|
38
|
+
|
|
39
|
+
# @!method initialize(annotations:, text:, logprobs: nil, type: :output_text)
|
|
40
40
|
# A text output from the model.
|
|
41
41
|
#
|
|
42
42
|
# @param annotations [Array<OpenAI::Models::Responses::ResponseOutputText::Annotation::FileCitation, OpenAI::Models::Responses::ResponseOutputText::Annotation::URLCitation, OpenAI::Models::Responses::ResponseOutputText::Annotation::ContainerFileCitation, OpenAI::Models::Responses::ResponseOutputText::Annotation::FilePath>] The annotations of the text output.
|
|
43
43
|
#
|
|
44
|
-
# @param logprobs [Array<OpenAI::Models::Responses::ResponseOutputText::Logprob>]
|
|
45
|
-
#
|
|
46
44
|
# @param text [String] The text output from the model.
|
|
47
45
|
#
|
|
46
|
+
# @param logprobs [Array<OpenAI::Models::Responses::ResponseOutputText::Logprob>]
|
|
47
|
+
#
|
|
48
48
|
# @param type [Symbol, :output_text] The type of the output text. Always `output_text`.
|
|
49
49
|
|
|
50
50
|
# A citation to a file.
|
data/lib/openai/version.rb
CHANGED
|
@@ -27,11 +27,6 @@ module OpenAI
|
|
|
27
27
|
end
|
|
28
28
|
attr_accessor :annotations
|
|
29
29
|
|
|
30
|
-
sig do
|
|
31
|
-
returns(T::Array[OpenAI::Responses::ResponseOutputText::Logprob])
|
|
32
|
-
end
|
|
33
|
-
attr_accessor :logprobs
|
|
34
|
-
|
|
35
30
|
# The text output from the model.
|
|
36
31
|
sig { returns(String) }
|
|
37
32
|
attr_accessor :text
|
|
@@ -44,6 +39,21 @@ module OpenAI
|
|
|
44
39
|
sig { returns(Symbol) }
|
|
45
40
|
attr_accessor :type
|
|
46
41
|
|
|
42
|
+
sig do
|
|
43
|
+
returns(
|
|
44
|
+
T.nilable(T::Array[OpenAI::Responses::ResponseOutputText::Logprob])
|
|
45
|
+
)
|
|
46
|
+
end
|
|
47
|
+
attr_reader :logprobs
|
|
48
|
+
|
|
49
|
+
sig do
|
|
50
|
+
params(
|
|
51
|
+
logprobs:
|
|
52
|
+
T::Array[OpenAI::Responses::ResponseOutputText::Logprob::OrHash]
|
|
53
|
+
).void
|
|
54
|
+
end
|
|
55
|
+
attr_writer :logprobs
|
|
56
|
+
|
|
47
57
|
# A text output from the model.
|
|
48
58
|
sig do
|
|
49
59
|
params(
|
|
@@ -56,18 +66,18 @@ module OpenAI
|
|
|
56
66
|
OpenAI::Responses::ResponseOutputText::Annotation::FilePath::OrHash
|
|
57
67
|
)
|
|
58
68
|
],
|
|
69
|
+
text: String,
|
|
59
70
|
logprobs:
|
|
60
71
|
T::Array[OpenAI::Responses::ResponseOutputText::Logprob::OrHash],
|
|
61
|
-
text: String,
|
|
62
72
|
type: Symbol
|
|
63
73
|
).returns(T.attached_class)
|
|
64
74
|
end
|
|
65
75
|
def self.new(
|
|
66
76
|
# The annotations of the text output.
|
|
67
77
|
annotations:,
|
|
68
|
-
logprobs:,
|
|
69
78
|
# The text output from the model.
|
|
70
79
|
text:,
|
|
80
|
+
logprobs: nil,
|
|
71
81
|
# The type of the output text. Always `output_text`.
|
|
72
82
|
type: :output_text
|
|
73
83
|
)
|
|
@@ -85,10 +95,9 @@ module OpenAI
|
|
|
85
95
|
OpenAI::Responses::ResponseOutputText::Annotation::FilePath
|
|
86
96
|
)
|
|
87
97
|
],
|
|
88
|
-
logprobs:
|
|
89
|
-
T::Array[OpenAI::Responses::ResponseOutputText::Logprob],
|
|
90
98
|
text: String,
|
|
91
|
-
type: Symbol
|
|
99
|
+
type: Symbol,
|
|
100
|
+
logprobs: T::Array[OpenAI::Responses::ResponseOutputText::Logprob]
|
|
92
101
|
}
|
|
93
102
|
)
|
|
94
103
|
end
|
|
@@ -4,32 +4,36 @@ module OpenAI
|
|
|
4
4
|
type response_output_text =
|
|
5
5
|
{
|
|
6
6
|
annotations: ::Array[OpenAI::Models::Responses::ResponseOutputText::annotation],
|
|
7
|
-
logprobs: ::Array[OpenAI::Responses::ResponseOutputText::Logprob],
|
|
8
7
|
text: String,
|
|
9
|
-
type: :output_text
|
|
8
|
+
type: :output_text,
|
|
9
|
+
logprobs: ::Array[OpenAI::Responses::ResponseOutputText::Logprob]
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
class ResponseOutputText < OpenAI::Internal::Type::BaseModel
|
|
13
13
|
attr_accessor annotations: ::Array[OpenAI::Models::Responses::ResponseOutputText::annotation]
|
|
14
14
|
|
|
15
|
-
attr_accessor logprobs: ::Array[OpenAI::Responses::ResponseOutputText::Logprob]
|
|
16
|
-
|
|
17
15
|
attr_accessor text: String
|
|
18
16
|
|
|
19
17
|
attr_accessor type: :output_text
|
|
20
18
|
|
|
19
|
+
attr_reader logprobs: ::Array[OpenAI::Responses::ResponseOutputText::Logprob]?
|
|
20
|
+
|
|
21
|
+
def logprobs=: (
|
|
22
|
+
::Array[OpenAI::Responses::ResponseOutputText::Logprob]
|
|
23
|
+
) -> ::Array[OpenAI::Responses::ResponseOutputText::Logprob]
|
|
24
|
+
|
|
21
25
|
def initialize: (
|
|
22
26
|
annotations: ::Array[OpenAI::Models::Responses::ResponseOutputText::annotation],
|
|
23
|
-
logprobs: ::Array[OpenAI::Responses::ResponseOutputText::Logprob],
|
|
24
27
|
text: String,
|
|
28
|
+
?logprobs: ::Array[OpenAI::Responses::ResponseOutputText::Logprob],
|
|
25
29
|
?type: :output_text
|
|
26
30
|
) -> void
|
|
27
31
|
|
|
28
32
|
def to_hash: -> {
|
|
29
33
|
annotations: ::Array[OpenAI::Models::Responses::ResponseOutputText::annotation],
|
|
30
|
-
logprobs: ::Array[OpenAI::Responses::ResponseOutputText::Logprob],
|
|
31
34
|
text: String,
|
|
32
|
-
type: :output_text
|
|
35
|
+
type: :output_text,
|
|
36
|
+
logprobs: ::Array[OpenAI::Responses::ResponseOutputText::Logprob]
|
|
33
37
|
}
|
|
34
38
|
|
|
35
39
|
type annotation =
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: openai
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.35.
|
|
4
|
+
version: 0.35.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAI
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-11-
|
|
11
|
+
date: 2025-11-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: connection_pool
|