omniai-anthropic 1.0.1 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f431b98530e904ca88f4860c87fcaf4d44d3960a58158ae91a20e0ff06a67e83
4
- data.tar.gz: c8a45bf94836565c387394558641253a7665d33e95537c13d642c4f21a6f9fa9
3
+ metadata.gz: c7515c0b1b6a181ac412b204086d41063233ea946dcdffc20da6d7380b271597
4
+ data.tar.gz: 50025d78d8e2e3fca15fdf285155da5c3bc4a71c76514a557eb154aa1eb83c73
5
5
  SHA512:
6
- metadata.gz: c37e3b9502f43209bc5d6fe9902d51460d09f55c56f9fdcb6567ac6e7a461d7857d1cda6982afc6058d992b158c179b2aa48d285bba710c066b27cc5a00f4ef2
7
- data.tar.gz: 6e7f50fea78c63919c101c5e6e591227b286a09806e854fff101d066a9a7ed084977f615b27dcdfe3018119ca20c0513f8ceae5668daf250d33ba115b31cc9ff
6
+ metadata.gz: 37c2635c4b2be5cb7279789bbce024e245b6187bd5cdcf7ee68ac58e730b6d0671e7d2aac2c647b67eaf2cec52d4bcad99d21891241915eb05710d4b1b1dd26b
7
+ data.tar.gz: b8376c28bc58daecd5cf21d478bca2bfe85f11458290fc49f1a5894a5cb5ba71d4a48ff3d5932a7bbc22e177e69b45ef5d4a435034b08e521d4acc52904f1bb5
@@ -13,9 +13,15 @@ module OmniAI
13
13
  # chat.completion([{ role: 'system', content: 'Tell me a joke.' }])
14
14
  class Chat < OmniAI::Chat
15
15
  module Model
16
- HAIKU = 'claude-3-haiku-20240307'
17
- SONNET = 'claude-3-sonnet-20240229'
18
- OPUS = 'claude-3-opus-20240229'
16
+ CLAUDE_INSTANT_1_0 = 'claude-instant-1.2'
17
+ CLAUDE_2_0 = 'claude-2.0'
18
+ CLAUDE_2_1 = 'claude-2.1'
19
+ CLAUDE_3_OPUS_20240229 = 'claude-3-opus-20240229'
20
+ CLAUDE_3_HAIKU_20240307 = 'claude-3-haiku-20240307'
21
+ CLAUDE_3_SONET_20240307 = 'claude-3-haiku-20240307'
22
+ CLAUDE_OPUS = CLAUDE_3_OPUS_20240229
23
+ CLAUDE_HAIKU = CLAUDE_3_HAIKU_20240307
24
+ CLAUDE_SONET = CLAUDE_3_SONET_20240307
19
25
  end
20
26
 
21
27
  protected
@@ -55,7 +55,7 @@ module OmniAI
55
55
  # @param stream [Proc, nil] optional
56
56
  #
57
57
  # @return [OmniAI::Chat::Completion]
58
- def chat(messages, model: Chat::Model::HAIKU, temperature: nil, format: nil, stream: nil)
58
+ def chat(messages, model: Chat::Model::CLAUDE_HAIKU, temperature: nil, format: nil, stream: nil)
59
59
  Chat.process!(messages, model:, temperature:, format:, stream:, client: self)
60
60
  end
61
61
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAI
4
4
  module Anthropic
5
- VERSION = '1.0.1'
5
+ VERSION = '1.0.4'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniai-anthropic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Sylvestre
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-06-14 00:00:00.000000000 Z
11
+ date: 2024-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: event_stream_parser
@@ -74,7 +74,7 @@ metadata:
74
74
  homepage_uri: https://github.com/ksylvest/omniai-anthropic
75
75
  changelog_uri: https://github.com/ksylvest/omniai-anthropic/releases
76
76
  rubygems_mfa_required: 'true'
77
- post_install_message:
77
+ post_install_message:
78
78
  rdoc_options: []
79
79
  require_paths:
80
80
  - lib
@@ -89,8 +89,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
89
89
  - !ruby/object:Gem::Version
90
90
  version: '0'
91
91
  requirements: []
92
- rubygems_version: 3.5.11
93
- signing_key:
92
+ rubygems_version: 3.5.3
93
+ signing_key:
94
94
  specification_version: 4
95
95
  summary: A generalized framework for interacting with Anthropic
96
96
  test_files: []