omniai-anthropic 1.6.2 → 1.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/omniai/anthropic/chat.rb +4 -4
- data/lib/omniai/anthropic/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41fa9f2696b2457c4fdadf958b6e89c91555b4fad07b424455def24687fc77e5
|
4
|
+
data.tar.gz: 8e274f3203deddafc11be3b34d4947a5c95e0591180a605e09a54c4d3a4e8fe5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 895ef4d62346311990d7ccb6d096321071414b492a8e7f2ed52bcfa49017da89b6db31ab66e5cee299dded336e28ef41e50e70478d3977422a0a1f5751ea3326
|
7
|
+
data.tar.gz: 852a864614cf0c6495820e830ef6159b8d5856afccdaad9dd664571ddcb18d24b9e7c24d80d15c1d085c850424c2213b54d60031aebd8d393c9210bcfd470bc7
|
data/README.md
CHANGED
@@ -56,7 +56,7 @@ completion.choice.message.content # 'The capital of Canada is Ottawa.'
|
|
56
56
|
`model` takes an optional string (default is `claude-3-haiku-20240307`):
|
57
57
|
|
58
58
|
```ruby
|
59
|
-
completion = client.chat('Provide code for fibonacci', model: OmniAI::Anthropic::Chat::Model::
|
59
|
+
completion = client.chat('Provide code for fibonacci', model: OmniAI::Anthropic::Chat::Model::CLAUDE_SONNET)
|
60
60
|
completion.choice.message.content # 'def fibonacci(n)...end'
|
61
61
|
```
|
62
62
|
|
@@ -18,14 +18,14 @@ module OmniAI
|
|
18
18
|
CLAUDE_2_1 = 'claude-2.1'
|
19
19
|
CLAUDE_3_OPUS_20240229 = 'claude-3-opus-20240229'
|
20
20
|
CLAUDE_3_HAIKU_20240307 = 'claude-3-haiku-20240307'
|
21
|
-
|
22
|
-
|
21
|
+
CLAUDE_3_SONNET_20240307 = 'claude-3-sonnet-20240307'
|
22
|
+
CLAUDE_3_5_SONNET_20240620 = 'claude-3-5-sonnet-20240620'
|
23
23
|
CLAUDE_OPUS = CLAUDE_3_OPUS_20240229
|
24
24
|
CLAUDE_HAIKU = CLAUDE_3_HAIKU_20240307
|
25
|
-
|
25
|
+
CLAUDE_SONNET = CLAUDE_3_5_SONNET_20240620
|
26
26
|
end
|
27
27
|
|
28
|
-
DEFAULT_MODEL = Model::
|
28
|
+
DEFAULT_MODEL = Model::CLAUDE_SONNET
|
29
29
|
|
30
30
|
# @param [Media]
|
31
31
|
# @return [Hash]
|
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.6.
|
4
|
+
version: 1.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Sylvestre
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: event_stream_parser
|