anthropic-rb 0.2.2 → 0.2.5

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: 4c3022f76117df11eaa2db77a0b074700e60d3c5de01f9ca718df54d06e9d03b
4
- data.tar.gz: 0e4a901e504ee4356aeca979ea0e1867708c69c564c4eb74f92284b67b7a8430
3
+ metadata.gz: 0e3bf7350209fe6270479e8bc20f1418975257b6cfb1beb2d67547eec8d4e168
4
+ data.tar.gz: 38c41a98c7095491ade15304025a8d6febb35ec10d758a7a0b725ad23a4e19e7
5
5
  SHA512:
6
- metadata.gz: 1856815b197fdafae315b32fdbff271ec4055c3e2abccb189cbb3bfe414c1e951040fc6b680b816423b174ad0aab15a933e96cbd86738e7450f6ebda5cbef93c
7
- data.tar.gz: f7a6b0735ad31fa1f8141c8feb05f2e6f00c6187f14528bb1c1083e271c324d874654079d2eda53bb17a85f45f90fcf753d91fe14801d2c672a2654db19b796f
6
+ metadata.gz: a69135f37ef25151067595106f6955c4fea146d4a95eb4093925d4a8eb26f9be46b4dcf4920e3a0cc8e55b462690a23ee929ab93468b358d51169aea90ed9f3d
7
+ data.tar.gz: 0405140a9574e4e4afa23504714f25687ed7a47acb5a02adec25e4b5e7ab6007ab3d160835e82a46795dba63f91b83801ba671db32cc8f5e47098e86278d9c06
data/CHANGELOG.md CHANGED
@@ -2,6 +2,25 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.2.5] - 2023-12-27
6
+
7
+ ### Fixed
8
+
9
+ - Fix documentation for streaming completions.
10
+ - Yank 0.2.4 release.
11
+
12
+ ## [0.2.3] - 2023-12-27
13
+
14
+ ### Fixed
15
+
16
+ - Fix links in CHANGELOG.md
17
+
18
+ ## [0.2.2] - 2023-12-27
19
+
20
+ ### Fixed
21
+
22
+ - Fix links in CHANGELOG.md
23
+
5
24
  ## [0.2.1] - 2023-12-27
6
25
 
7
26
  ### Fixed
@@ -21,7 +40,10 @@
21
40
 
22
41
  - Initial release
23
42
 
24
- [Unreleased]: https://github.com/d3d1rty/event_logger_rails/compare/0.2.1...HEAD
25
- [0.2.1]: https://github.com/d3d1rty/event_logger_rails/compare/0.2.0...0.2.1
26
- [0.2.0]: https://github.com/d3d1rty/event_logger_rails/compare/0.1.0...0.2.0
27
- [0.1.0]: https://github.com/d3d1rty/event_logger_rails/releases/tag/0.1.0
43
+ [Unreleased]: https://github.com/dickdavis/anthropic-rb/compare/v0.2.5...HEAD
44
+ [0.2.5]: https://github.com/dickdavis/anthropic-rb/compare/v0.2.3...v0.2.5
45
+ [0.2.3]: https://github.com/dickdavis/anthropic-rb/compare/v0.2.2...v0.2.3
46
+ [0.2.2]: https://github.com/dickdavis/anthropic-rb/compare/v0.2.1...v0.2.2
47
+ [0.2.1]: https://github.com/dickdavis/anthropic-rb/compare/v0.2.0...v0.2.1
48
+ [0.2.0]: https://github.com/dickdavis/anthropic-rb/compare/v0.1.0...v0.2.0
49
+ [0.1.0]: https://github.com/dickdavis/anthropic-rb/releases/tag/v0.1.0
data/README.md CHANGED
@@ -50,7 +50,7 @@ Anthropic.completions.create(
50
50
  Alternatively, you can stream the response:
51
51
 
52
52
  ```ruby
53
- Anthropic.completions.create(model: 'claude-2', max_tokens_to_sample: 200, prompt: 'Human: Yo what up?\n\nAssistant:') do |event|
53
+ Anthropic.completions.create(model: 'claude-2', max_tokens_to_sample: 200, prompt: 'Human: Yo what up?\n\nAssistant:', stream: true) do |event|
54
54
  puts event
55
55
  end
56
56
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Anthropic
4
- VERSION = '0.2.2'
4
+ VERSION = '0.2.5'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anthropic-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dick Davis