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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7f355f49e0fcac63485f6e017ae90eb6f499cd1223cb4ec125422cdef08e14cb
4
- data.tar.gz: f07aca376c9982b6f9b071ab426e775c73bc8a20a04d6d4aa2aa5a50b3edd0be
3
+ metadata.gz: 92012d7a509078046f920380845855721e2a27124604d65a27b5e6eaeb8b66b0
4
+ data.tar.gz: 2a2bcd66dbf8a9f86932ecec620bd30933e19d31c4c87ff6767db6ae4facaecf
5
5
  SHA512:
6
- metadata.gz: 7a6d2bdd83346d8c1b5a66d9351d2e11ede416901b276c85b3ff2f3997c390cff566ced9a1f841df5639347fe6f0f9f6b4586b97d8e9cfcf88d91c5f02d8c086
7
- data.tar.gz: 770012e9af20274e3f64f89819695cc918f1d3f827137244e76604f37bc5510f58a7ac2ca8a66a16336a3d6448230e0deb61f2c90e36f2bff1d867043f3bc702
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, &block)
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OmniAI
4
- VERSION = "2.9.1"
4
+ VERSION = "2.9.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniai
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.1
4
+ version: 2.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Sylvestre