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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 04c0cdb7e7e035455287513cac3b7576c5a303ded39a41c1fd11b3153d96c318
4
- data.tar.gz: 501fab83c266f518ddeb9d5851daab241eb4a2fc8474e432d1853f19fc66d21e
3
+ metadata.gz: f9a25095b21f1e2a394c2c783902e72db6f8c442fe9f9e47d7196a02956875db
4
+ data.tar.gz: 5a7900af12bfaf9cd1d59292641dd9e79af25e8ba5aec21c259f93f85a1b8e54
5
5
  SHA512:
6
- metadata.gz: 141041c2b8d7c724bb0ff1e8679ff2c26d9f1a3eb3b9df6224f2b4f6e02e106a4a42ba7a1f26b806597643aab7b575d53dbe6bc60da2aca3fc5f493433132932
7
- data.tar.gz: 6317870de2bbea4a224015ee7c2e0555bcb8fc6f2c4c8be173643fac99cef55170795192cddc6add65f65c052af0ba7d3e1758bb5a257e65f0eb82c1fa0d835b
6
+ metadata.gz: faa79c579a7180b187afca76c94cf6a972dfb016f32f0355767d69c4716b81611879fdf6bb4ded4e98e6ce136f8ff56abfab66fc1a623b717e847e229e34a944
7
+ data.tar.gz: d797536e40b66eb4724071fbf92bce78c282aa7c822da4fc2b4685865f0d87061731c7e48f3dcd7fcf82348766f647615164138e1c8a5e115f9d6c1f3cc5bf09
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## [0.4.1] - 2024-11-06
2
+ - Added the latest Claude models
3
+ -
1
4
  ## [0.4.0] - 2024-07-09
2
5
  - Refactored model constants into a separate Model module
3
6
  - Support custom endpoints
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- claude-ruby (0.3.1)
4
+ claude-ruby (0.4.1)
5
5
  httparty
6
6
 
7
7
  GEM
@@ -51,6 +51,7 @@ GEM
51
51
  PLATFORMS
52
52
  arm64-darwin-22
53
53
  ruby
54
+ x86_64-linux
54
55
 
55
56
  DEPENDENCIES
56
57
  claude-ruby!
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: 'you-custom-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
- CLAUDE_3_SONNET_20240229 = 'claude-3-sonnet-20240229'
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 = CLAUDE_3_5_SONNET_20240620
15
- CLAUDE_HAIKU_LATEST = CLAUDE_3_HAIKU_20240307
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 = CLAUDE_HAIKU_LATEST
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 = CLAUDE_SONNET_LATEST
24
+ CLAUDE_DEFAULT = CLAUDE_BALANCED
23
25
  end
24
26
 
25
27
  class Client
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Claude
4
4
  module Ruby
5
- VERSION = "0.4.0"
5
+ VERSION = "0.4.1"
6
6
  end
7
7
  end
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.0
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-07-09 00:00:00.000000000 Z
11
+ date: 2024-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty