omniai-anthropic 1.6.1 → 1.6.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: e9b758783278cd58cfeac0e8a80765d796e63efb811671eaa44b4e4653496c45
4
- data.tar.gz: 1cdcff27b130211ff661bf14d219716373eb7bc03d568a50d1c5a453215977f9
3
+ metadata.gz: e3ec18d95df3bf4941dd540413734412edd074ae66d67485f150acd5f4a2b9f9
4
+ data.tar.gz: c661aa160f00d882957a91b219e89b35c242e3055dc259a488c1d7955d9df448
5
5
  SHA512:
6
- metadata.gz: 3ff6a720b6a032067d2e1c217f1cda76e552fe06e3c61e82b3eec36f307e9ab55da840b850718c38f7ed074c719597bbcd22d2c36bcdf56822782253661f74b2
7
- data.tar.gz: 76cd69ef19bc717166576ea4ba7cb11579508a182da624fa18764804ee46466958c651e7be79874ac1b51ae2791839e74cc08613e1fb07ce3e4cae594958c820
6
+ metadata.gz: 7af0dd8df929fe89b40d7be35153feb6f2e1f127e0fa103d76d22f934bda854be93ebd2eb00d29c1c7645ac61a8fdeb90c958b397b6f7fc35eb20ee291391cd7
7
+ data.tar.gz: 3f5fa55a06a3c72bd3395523bb6911b4e911cd825029de2f1f0d184c4b0a6f1440bf5583baa3685382a37b2f5abb24d8c12682bef1f63ca1dfe8a038b328d1e4
@@ -25,6 +25,8 @@ module OmniAI
25
25
  CLAUDE_SONET = CLAUDE_3_5_SONET_20240620
26
26
  end
27
27
 
28
+ DEFAULT_MODEL = Model::CLAUDE_HAIKU
29
+
28
30
  # @param [Media]
29
31
  # @return [Hash]
30
32
  # @example
@@ -52,7 +52,7 @@ module OmniAI
52
52
 
53
53
  # @raise [OmniAI::Error]
54
54
  #
55
- # @param messages [String, Array, Hash]
55
+ # @param messages [String] optional
56
56
  # @param model [String] optional
57
57
  # @param format [Symbol] optional :text or :json
58
58
  # @param temperature [Float, nil] optional
@@ -63,7 +63,7 @@ module OmniAI
63
63
  # @yieldparam prompt [OmniAI::Chat::Prompt]
64
64
  #
65
65
  # @return [OmniAI::Chat::Completion]
66
- def chat(messages, model: Chat::Model::CLAUDE_HAIKU, temperature: nil, format: nil, stream: nil, tools: nil, &)
66
+ def chat(messages = nil, model: Chat::DEFAULT_MODEL, temperature: nil, format: nil, stream: nil, tools: nil, &)
67
67
  Chat.process!(messages, model:, temperature:, format:, stream:, tools:, client: self, &)
68
68
  end
69
69
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAI
4
4
  module Anthropic
5
- VERSION = '1.6.1'
5
+ VERSION = '1.6.2'
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.1
4
+ version: 1.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Sylvestre