File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ require "cohere"
1212# Pry.start
1313
1414client = Cohere ::Client . new (
15- ENV [ 'COHERE_API_KEY' ]
15+ api_key : ENV [ 'COHERE_API_KEY' ]
1616)
1717
1818require "irb"
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ class Client
88
99 ENDPOINT_URL = "https://api.cohere.ai/v1"
1010
11- def initialize ( api_key , timeout : nil )
11+ def initialize ( api_key : , timeout : nil )
1212 @api_key = api_key
1313 @timeout = timeout
1414 end
Original file line number Diff line number Diff line change 33require "spec_helper"
44
55RSpec . describe Cohere ::Client do
6- let ( :instance ) { described_class . new ( "123" ) }
6+ let ( :instance ) { described_class . new ( api_key : "123" ) }
77
88 describe "#generate" do
99 let ( :generate_result ) { JSON . parse ( File . read ( "spec/fixtures/generate_result.json" ) ) }
You can’t perform that action at this time.
0 commit comments