template.md in cohere-ai-1.0.2 vs template.md in cohere-ai-1.1.0
- old
+ new
@@ -7,11 +7,11 @@
> _This Gem is designed to provide low-level access to Cohere AI, enabling people to build abstractions on top of it. If you are interested in more high-level abstractions or more user-friendly tools, you may want to consider [Nano Bots](https://github.com/icebaker/ruby-nano-bots) 💎 🤖._
## TL;DR and Quick Start
```ruby
-gem 'cohere-ai', '~> 1.0.2'
+gem 'cohere-ai', '~> 1.1.0'
```
```ruby
require 'cohere-ai'
@@ -48,15 +48,15 @@
## Setup
### Installing
```sh
-gem install cohere-ai -v 1.0.2
+gem install cohere-ai -v 1.1.0
```
```sh
-gem 'cohere-ai', '~> 1.0.2'
+gem 'cohere-ai', '~> 1.1.0'
```
### Credentials
You can obtain your API key from the [Cohere AI Platform](https://dashboard.cohere.com).
@@ -578,10 +578,25 @@
)
```
### Request Options
+#### Adapter
+
+The gem uses [Faraday](https://github.com/lostisland/faraday) with the [Typhoeus](https://github.com/typhoeus/typhoeus) adapter by default.
+
+You can use a different adapter if you want:
+
+```ruby
+require 'faraday/net_http'
+
+client = Cohere.new(
+ credentials: { api_key: ENV['COHERE_API_KEY'] },
+ options: { connection: { adapter: :net_http } }
+)
+```
+
#### Timeout
You can set the maximum number of seconds to wait for the request to complete with the `timeout` option:
```ruby
@@ -680,10 +695,10 @@
```bash
gem build cohere-ai.gemspec
gem signin
-gem push cohere-ai-1.0.2.gem
+gem push cohere-ai-1.1.0.gem
```
### Updating the README
Install [Babashka](https://babashka.org):