omniai 2.9.1 → 2.9.2
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/lib/omniai/chat.rb +12 -2
- data/lib/omniai/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 92012d7a509078046f920380845855721e2a27124604d65a27b5e6eaeb8b66b0
|
|
4
|
+
data.tar.gz: 2a2bcd66dbf8a9f86932ecec620bd30933e19d31c4c87ff6767db6ae4facaecf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 21e52fdd7d754e1c2d1e358d7180a99a3ac12caed8cc26d35b241f73fec6974df07385e60a24b20b836707fb78af916fa3bfe1a9b5588ca2497e6c1df783ab1b
|
|
7
|
+
data.tar.gz: f8d2d079bc66b84c242d222825675d9dc5bd74aee4dc7ac1371dd54b5e9a3c971801bb996cb49bb40332407b961695806d791161b0f04da353f0d7cd00d87aba
|
data/lib/omniai/chat.rb
CHANGED
|
@@ -66,12 +66,16 @@ module OmniAI
|
|
|
66
66
|
# @param stream [Proc, IO, nil] optional
|
|
67
67
|
# @param tools [Array<OmniAI::Tool>] optional
|
|
68
68
|
# @param format [:json, :text, OmniAI::Schema::Object, nil] optional
|
|
69
|
+
# @param reasoning [Hash, nil] optional reasoning configuration (provider-specific)
|
|
70
|
+
# @param verbosity [Hash, nil] optional verbosity configuration (provider-specific)
|
|
71
|
+
# @param kwargs [Hash] additional provider-specific options
|
|
69
72
|
#
|
|
70
73
|
# @yield [prompt] optional
|
|
71
74
|
# @yieldparam prompt [OmniAI::Chat::Prompt]
|
|
72
75
|
#
|
|
73
76
|
# @return [OmniAi::Chat]
|
|
74
|
-
def initialize(prompt = nil, client:, model:, temperature: nil, stream: nil, tools: nil, format: nil,
|
|
77
|
+
def initialize(prompt = nil, client:, model:, temperature: nil, stream: nil, tools: nil, format: nil,
|
|
78
|
+
reasoning: nil, verbosity: nil, **kwargs, &block)
|
|
75
79
|
raise ArgumentError, "prompt or block is required" if !prompt && !block
|
|
76
80
|
|
|
77
81
|
@prompt = prompt ? Prompt.parse(prompt) : Prompt.new
|
|
@@ -83,6 +87,9 @@ module OmniAI
|
|
|
83
87
|
@stream = stream
|
|
84
88
|
@tools = tools
|
|
85
89
|
@format = format
|
|
90
|
+
@reasoning = reasoning
|
|
91
|
+
@verbosity = verbosity
|
|
92
|
+
@kwargs = kwargs
|
|
86
93
|
end
|
|
87
94
|
|
|
88
95
|
# @raise [HTTPError]
|
|
@@ -143,7 +150,10 @@ module OmniAI
|
|
|
143
150
|
temperature: @temperature,
|
|
144
151
|
stream: @stream,
|
|
145
152
|
tools: @tools,
|
|
146
|
-
format: @format
|
|
153
|
+
format: @format,
|
|
154
|
+
reasoning: @reasoning,
|
|
155
|
+
verbosity: @verbosity,
|
|
156
|
+
**@kwargs
|
|
147
157
|
)
|
|
148
158
|
end
|
|
149
159
|
|
data/lib/omniai/version.rb
CHANGED