cohere-ruby 0.9.0 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +9 -6
- data/README.md +2 -0
- data/lib/cohere/client.rb +3 -0
- data/lib/cohere/version.rb +1 -1
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52c112897d243ee60c582f2aedc1a84a11b3dcec41470b2e8cae2411cb524776
|
4
|
+
data.tar.gz: fedb32a5e5186589fb90ef8eaf8915a8b001d9d2ad8b576c4bd2f6707a26b8a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6268e7067c2ff09e019e61dc8839e319aaabd7f7f687bfc2caa198af7a787c927dcd615f54974351a8f667490a1a6fd914b7e018c361b6ddc59fa1850393a156
|
7
|
+
data.tar.gz: f4ac37e10a43250191d09666655a95ff0895a6c1511c90723765ca40d8241641cfefb1db5b6d4cefd896da5b458165118e1550ebc90703b700d3859fe6e90bc6
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,21 +1,24 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cohere-ruby (0.9.
|
5
|
-
faraday (~>
|
4
|
+
cohere-ruby (0.9.2)
|
5
|
+
faraday (~> 1)
|
6
|
+
faraday_middleware (~> 1)
|
6
7
|
|
7
8
|
GEM
|
8
9
|
remote: https://rubygems.org/
|
9
10
|
specs:
|
10
11
|
ast (2.4.2)
|
11
12
|
diff-lcs (1.5.0)
|
12
|
-
faraday (2.
|
13
|
-
|
14
|
-
ruby2_keywords
|
15
|
-
|
13
|
+
faraday (1.2.0)
|
14
|
+
multipart-post (>= 1.2, < 3)
|
15
|
+
ruby2_keywords
|
16
|
+
faraday_middleware (1.2.0)
|
17
|
+
faraday (~> 1.0)
|
16
18
|
json (2.6.3)
|
17
19
|
language_server-protocol (3.17.0.3)
|
18
20
|
lint_roller (1.0.0)
|
21
|
+
multipart-post (2.3.0)
|
19
22
|
parallel (1.23.0)
|
20
23
|
parser (3.2.2.1)
|
21
24
|
ast (~> 2.4.1)
|
data/README.md
CHANGED
data/lib/cohere/client.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "faraday"
|
4
|
+
require "faraday_middleware"
|
4
5
|
|
5
6
|
module Cohere
|
6
7
|
class Client
|
@@ -126,6 +127,7 @@ module Cohere
|
|
126
127
|
|
127
128
|
private
|
128
129
|
|
130
|
+
# standard:disable Lint/DuplicateMethods
|
129
131
|
def connection
|
130
132
|
@connection ||= Faraday.new(url: ENDPOINT_URL) do |faraday|
|
131
133
|
if api_key
|
@@ -136,5 +138,6 @@ module Cohere
|
|
136
138
|
faraday.adapter Faraday.default_adapter
|
137
139
|
end
|
138
140
|
end
|
141
|
+
# standard:enable Lint/DuplicateMethods
|
139
142
|
end
|
140
143
|
end
|
data/lib/cohere/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cohere-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrei Bondarev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -16,14 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: '1'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: faraday_middleware
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1'
|
27
41
|
description: Cohere API client for Ruby.
|
28
42
|
email:
|
29
43
|
- andrei.bondarev13@gmail.com
|