omniai-anthropic 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: a9ae15992c71cef2c9e50527a2d46ec71232177c5360aa2e37dff56317245a59
4
- data.tar.gz: a2425bfd1981cf37d12792ce39a9318bd9c8a68d25459970904b027d2c5bdf36
3
+ metadata.gz: e9b758783278cd58cfeac0e8a80765d796e63efb811671eaa44b4e4653496c45
4
+ data.tar.gz: 1cdcff27b130211ff661bf14d219716373eb7bc03d568a50d1c5a453215977f9
5
5
  SHA512:
6
- metadata.gz: de02489dfb4d5154914901a302b22541356883bd217904acb0be7f379bccfafd4f56f68f10160a9826bcf702f4dc491061ec9aebae098918b2529bf9896e280a
7
- data.tar.gz: 126bb9cd63cd7aa0cb1de8b7e6cbc2d6c2946bee22894ed979c89c6290b0614e73e14efb9ec157c555dbeb577ad62eafcfec1e53d36673c015866f7226358b40
6
+ metadata.gz: 3ff6a720b6a032067d2e1c217f1cda76e552fe06e3c61e82b3eec36f307e9ab55da840b850718c38f7ed074c719597bbcd22d2c36bcdf56822782253661f74b2
7
+ data.tar.gz: 76cd69ef19bc717166576ea4ba7cb11579508a182da624fa18764804ee46466958c651e7be79874ac1b51ae2791839e74cc08613e1fb07ce3e4cae594958c820
@@ -59,9 +59,12 @@ module OmniAI
59
59
  # @param stream [Proc, nil] optional
60
60
  # @param tools [Array<OmniAI::Tool>, nil] optional
61
61
  #
62
+ # @yield [prompt]
63
+ # @yieldparam prompt [OmniAI::Chat::Prompt]
64
+ #
62
65
  # @return [OmniAI::Chat::Completion]
63
- def chat(messages, model: Chat::Model::CLAUDE_HAIKU, temperature: nil, format: nil, stream: nil, tools: nil)
64
- Chat.process!(messages, model:, temperature:, format:, stream:, tools:, client: self)
66
+ def chat(messages, model: Chat::Model::CLAUDE_HAIKU, temperature: nil, format: nil, stream: nil, tools: nil, &)
67
+ Chat.process!(messages, model:, temperature:, format:, stream:, tools:, client: self, &)
65
68
  end
66
69
  end
67
70
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAI
4
4
  module Anthropic
5
- VERSION = '1.6.0'
5
+ VERSION = '1.6.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniai-anthropic
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