omniai-anthropic 1.0.3 → 1.1.0

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: 8eff2ca7ce3838279c86f54ebdce6872f28e6e8b023f6a9e67494458d2dfb74c
4
- data.tar.gz: 770fa79aee0917b1271e05a925566c766b0203c21a4a8a3e2bc030fd0fb77509
3
+ metadata.gz: fa660597cc0de2cd00fa3629d04904cc4e66a0006c977bb34435f08609fb42da
4
+ data.tar.gz: 508b2098cd6c1c74325fcb6b8a4b41dec262023af319e2ba6c9024687975e51e
5
5
  SHA512:
6
- metadata.gz: 1ecb8c35b85e6a7c88a0f882441fc44a89d7abe3504c6afd6ba20b0555bd13a24c021eaab2482e06009ef61b8b6034b19148819d78ead0ae9501d99d63ba283f
7
- data.tar.gz: d63988b5ba55395a47c80880f47508226ad587431babe47b885724a3d3db0edd56afcbc431d291548c510523be08561d02ce520afc1be8d9acb573aebf3f43a3
6
+ metadata.gz: ccf55f67c7fa7fbcdcaaf8ef2ef3c42aea55d73acf3eec786e4b242af0ddbdfa9693d506727f567475ae9b4186e2f70ac4cb7c8eb0a414c0ffa0a18ff1bce922
7
+ data.tar.gz: 61bbcff1cd4c44105b59a569fd054c3142e3b794f5fdb2b97cb83067a6409be4282bb3479d73e8994acddd347e4d6ab0c91f1fd2abe229169ac969fd03e5f5e2
data/README.md CHANGED
@@ -67,7 +67,7 @@ completion.choice.message.content # 'The capital of Canada is Ottawa.'
67
67
  `model` takes an optional string (default is `claude-3-haiku-20240307`):
68
68
 
69
69
  ```ruby
70
- completion = client.chat('Provide code for fibonacci', model: OmniAI::Anthropic::Chat::Model::OPUS)
70
+ completion = client.chat('Provide code for fibonacci', model: OmniAI::Anthropic::Chat::Model::CLAUDE_OPUS)
71
71
  completion.choice.message.content # 'def fibonacci(n)...end'
72
72
  ```
73
73
 
@@ -11,7 +11,7 @@ module OmniAI
11
11
  role = @data['role']
12
12
 
13
13
  @data['content'].map do |data, index|
14
- OmniAI::Chat::Choice.new(data: {
14
+ OmniAI::Chat::Choice.for(data: {
15
15
  'index' => index,
16
16
  'message' => { 'role' => role, 'content' => data['text'] },
17
17
  })
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAI
4
4
  module Anthropic
5
- VERSION = '1.0.3'
5
+ VERSION = '1.1.0'
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.3
4
+ version: 1.1.0
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-06-15 00:00:00.000000000 Z
11
+ date: 2024-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: event_stream_parser