claude-ruby 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +2 -1
- data/README.md +1 -1
- data/lib/claude/client.rb +7 -5
- data/lib/claude/ruby/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: f9a25095b21f1e2a394c2c783902e72db6f8c442fe9f9e47d7196a02956875db
|
4
|
+
data.tar.gz: 5a7900af12bfaf9cd1d59292641dd9e79af25e8ba5aec21c259f93f85a1b8e54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: faa79c579a7180b187afca76c94cf6a972dfb016f32f0355767d69c4716b81611879fdf6bb4ded4e98e6ce136f8ff56abfab66fc1a623b717e847e229e34a944
|
7
|
+
data.tar.gz: d797536e40b66eb4724071fbf92bce78c282aa7c822da4fc2b4685865f0d87061731c7e48f3dcd7fcf82348766f647615164138e1c8a5e115f9d6c1f3cc5bf09
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -215,7 +215,7 @@ By default claude-ruby will use the latest official Anthropic API endpoint at th
|
|
215
215
|
You can optionally optionally override this - e.g. for testing, or for using a beta endpoint.
|
216
216
|
|
217
217
|
```ruby
|
218
|
-
claude_client = Claude::Client.new(api_key, endpoint: '
|
218
|
+
claude_client = Claude::Client.new(api_key, endpoint: 'your-custom-endpoint')
|
219
219
|
```
|
220
220
|
|
221
221
|
## Vision
|
data/lib/claude/client.rb
CHANGED
@@ -5,21 +5,23 @@ module Claude
|
|
5
5
|
module Model
|
6
6
|
CLAUDE_3_OPUS_20240229 = 'claude-3-opus-20240229'
|
7
7
|
|
8
|
-
|
8
|
+
CLAUDE_3_5_SONNET_20241022 = 'claude-3-5-sonnet-20241022'
|
9
9
|
CLAUDE_3_5_SONNET_20240620 = 'claude-3-5-sonnet-20240620'
|
10
|
+
CLAUDE_3_SONNET_20240229 = 'claude-3-sonnet-20240229'
|
10
11
|
|
12
|
+
CLAUDE_3_5_HAIKU_20241022 = 'claude-3-5-haiku-20241022'
|
11
13
|
CLAUDE_3_HAIKU_20240307 = 'claude-3-haiku-20240307'
|
12
14
|
|
13
15
|
CLAUDE_OPUS_LATEST = CLAUDE_3_OPUS_20240229
|
14
|
-
CLAUDE_SONNET_LATEST =
|
15
|
-
CLAUDE_HAIKU_LATEST =
|
16
|
+
CLAUDE_SONNET_LATEST = CLAUDE_3_5_SONNET_20241022
|
17
|
+
CLAUDE_HAIKU_LATEST = CLAUDE_3_5_HAIKU_20241022
|
16
18
|
|
17
19
|
CLAUDE_FASTEST = CLAUDE_HAIKU_LATEST
|
18
|
-
CLAUDE_CHEAPEST =
|
20
|
+
CLAUDE_CHEAPEST = CLAUDE_3_HAIKU_20240307
|
19
21
|
CLAUDE_BALANCED = CLAUDE_SONNET_LATEST
|
20
22
|
CLAUDE_SMARTEST = CLAUDE_3_5_SONNET_20240620
|
21
23
|
|
22
|
-
CLAUDE_DEFAULT =
|
24
|
+
CLAUDE_DEFAULT = CLAUDE_BALANCED
|
23
25
|
end
|
24
26
|
|
25
27
|
class Client
|
data/lib/claude/ruby/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: claude-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Web Ventures Ltd
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|