omniai 1.6.0 → 1.6.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: b44fd75b138e1f46f517e7077367e02bdbcf1f798ee000087c5ba4c97bb7494b
4
- data.tar.gz: 88002c5d7018fc5a940b30bfa644a93e93e9b93d0cbdd993306bf15943ea790d
3
+ metadata.gz: fc0ef904482119dedd44057ac782fdf5c0c43a72f4a212c9a10736ba6389bd9d
4
+ data.tar.gz: 9d8c20309d3652207719f0d95253df5d4bb422658f42d724aa509bec0595721b
5
5
  SHA512:
6
- metadata.gz: f3bc56ecbeaaf50d776c87eb07ba571b85f2ab001b8181cff66875a9a282289fdec9bfa2c2a716637758f61a76d0c3ddf8b794abee6e3adba6117ad4b4fc4ccd
7
- data.tar.gz: 233f99eb1daf1a75173559ad2649461aa1b1e1bc1f53eba65c5113690f38017258db79f4ba8d83e525c363adcd76caae9997fda49cf32c01198917c030b2b8f7
6
+ metadata.gz: 00462515ed1392ccc2a94dcdc1bc61e18ce316306dbbaf77523938a47e49e33d7f6e17d37ecc921edc82b04f8f7a8de7a122fdd0eeb787cabf95cf8c42092309
7
+ data.tar.gz: 894271b6a222be666bad5a2502ab4b040ab4e8c7f31c6c3e3dd3226b296a8198a0f3030e31c75de0fea30db8d0b5e27c0601b13d99127ab0121dbbef5b128943
data/lib/omniai/chat.rb CHANGED
@@ -57,7 +57,11 @@ module OmniAI
57
57
  # @param stream [Proc, IO, nil] optional
58
58
  # @param tools [Array<OmniAI::Tool>] optional
59
59
  # @param format [Symbol, nil] optional - :json
60
+ #
60
61
  # @yield [prompt] optional
62
+ # @yieldparam prompt [OmniAI::Chat::Prompt]
63
+ #
64
+ # @return [OmniAi::Chat]
61
65
  def initialize(prompt = nil, client:, model:, temperature: nil, stream: nil, tools: nil, format: nil, &block)
62
66
  raise ArgumentError, 'prompt or block is required' if !prompt && !block
63
67
 
data/lib/omniai/client.rb CHANGED
@@ -131,8 +131,11 @@ module OmniAI
131
131
  # @param stream [Proc, nil] optional
132
132
  # @param tools [Array<OmniAI::Tool>] optional
133
133
  #
134
+ # @yield [prompt] optional
135
+ # @yieldparam prompt [OmniAI::Chat::Prompt]
136
+ #
134
137
  # @return [OmniAI::Chat::Completion]
135
- def chat(messages, model:, temperature: nil, format: nil, stream: nil, tools: nil)
138
+ def chat(messages, model:, temperature: nil, format: nil, stream: nil, tools: nil, &)
136
139
  raise NotImplementedError, "#{self.class.name}#chat undefined"
137
140
  end
138
141
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OmniAI
4
- VERSION = '1.6.0'
4
+ VERSION = '1.6.1'
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: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Sylvestre