cohere-ruby 0.9.5 → 0.9.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +6 -9
- data/README.md +7 -1
- data/lib/cohere/client.rb +1 -2
- data/lib/cohere/version.rb +1 -1
- metadata +9 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f3e839b9a7eb9b33711cd3f909dec96c85b9402a9d43f173c8350f666bde182
|
4
|
+
data.tar.gz: 5c549985ee0e26b99e5f20e2baefad46ab39f3ad300e8f928c69355f1caa847b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08b9d5b439fe3bf4a64a52d65535635e044d52051af213dddcb216aa0efaf9ecd982b6f80b20dcde7916f41d52b5ae21e5c825083bbb139baf9fe787afc8e093'
|
7
|
+
data.tar.gz: 58a85830e7564db2eafa1dc833f7d6d516451fedf50fbd968f202e9243b47cb738e54ed15f6fc88841382181b9331ef1c40cbfc8ec6a57b101fccef759742adb
|
data/Gemfile.lock
CHANGED
@@ -1,24 +1,21 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cohere-ruby (0.9.
|
5
|
-
faraday (>=
|
6
|
-
faraday_middleware (>= 1.0.0)
|
4
|
+
cohere-ruby (0.9.7)
|
5
|
+
faraday (>= 2.0.1, < 3.0)
|
7
6
|
|
8
7
|
GEM
|
9
8
|
remote: https://rubygems.org/
|
10
9
|
specs:
|
11
10
|
ast (2.4.2)
|
12
11
|
diff-lcs (1.5.0)
|
13
|
-
faraday (
|
14
|
-
|
15
|
-
ruby2_keywords
|
16
|
-
|
17
|
-
faraday (~> 1.0)
|
12
|
+
faraday (2.7.10)
|
13
|
+
faraday-net_http (>= 2.0, < 3.1)
|
14
|
+
ruby2_keywords (>= 0.0.4)
|
15
|
+
faraday-net_http (3.0.2)
|
18
16
|
json (2.6.3)
|
19
17
|
language_server-protocol (3.17.0.3)
|
20
18
|
lint_roller (1.0.0)
|
21
|
-
multipart-post (2.3.0)
|
22
19
|
parallel (1.23.0)
|
23
20
|
parser (3.2.2.1)
|
24
21
|
ast (~> 2.4.1)
|
data/README.md
CHANGED
@@ -8,7 +8,13 @@
|
|
8
8
|
|
9
9
|
Cohere API client for Ruby.
|
10
10
|
|
11
|
-
|
11
|
+
Part of the [Langchain.rb](https://github.com/andreibondarev/langchainrb) stack.
|
12
|
+
|
13
|
+
![Tests status](https://github.com/andreibondarev/cohere-ruby/actions/workflows/ci.yml/badge.svg)
|
14
|
+
[![Gem Version](https://badge.fury.io/rb/cohere-ruby.svg)](https://badge.fury.io/rb/cohere-ruby)
|
15
|
+
[![Docs](http://img.shields.io/badge/yard-docs-blue.svg)](http://rubydoc.info/gems/cohere-ruby)
|
16
|
+
[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/andreibondarev/cohere-ruby/blob/main/LICENSE.txt)
|
17
|
+
[![](https://dcbadge.vercel.app/api/server/WDARp7J2n8?compact=true&style=flat)](https://discord.gg/WDARp7J2n8)
|
12
18
|
|
13
19
|
## Installation
|
14
20
|
|
data/lib/cohere/client.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "faraday"
|
4
|
-
require "faraday_middleware"
|
5
4
|
|
6
5
|
module Cohere
|
7
6
|
class Client
|
@@ -9,7 +8,7 @@ module Cohere
|
|
9
8
|
|
10
9
|
ENDPOINT_URL = "https://api.cohere.ai/v1"
|
11
10
|
|
12
|
-
def initialize(api_key
|
11
|
+
def initialize(api_key)
|
13
12
|
@api_key = api_key
|
14
13
|
end
|
15
14
|
|
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.7
|
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-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -16,28 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
20
|
-
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
19
|
+
version: 2.0.1
|
20
|
+
- - "<"
|
25
21
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
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.0.0
|
22
|
+
version: '3.0'
|
34
23
|
type: :runtime
|
35
24
|
prerelease: false
|
36
25
|
version_requirements: !ruby/object:Gem::Requirement
|
37
26
|
requirements:
|
38
27
|
- - ">="
|
39
28
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
29
|
+
version: 2.0.1
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '3.0'
|
41
33
|
description: Cohere API client for Ruby.
|
42
34
|
email:
|
43
35
|
- andrei.bondarev13@gmail.com
|