README.md in voyageai-1.1.1 vs README.md in voyageai-1.2.0
- old
+ new
@@ -42,5 +42,19 @@
embed = voyageai.embed(input)
embed.model # "..."
embed.usage # "#<VoyageAI::Usage total_tokens=...>"
embed.embeddings # [[0.0, ...], ...]
```
+
+## Configuration
+
+```ruby
+require 'voyageai'
+
+VoyageAI.configure do |config|
+ config.api_key = 'pa-...' # defaults to ENV['VOYAGEAI_API_KEY']
+ config.host = 'https://api.voyageai.com'
+ config.version = 'v1'
+ config.timeout = 15 # seconds
+ config.logger = Logger.new(STDOUT)
+end
+```