Releases: gbaptista/gemini-ai
Releases · gbaptista/gemini-ai
Ruby Gemini AI 4.2.0
New version available on RubyGems:
gem 'gemini-ai', '~> 4.2'
New in this version:
- Upgrading some Gems
- Counting Tokens: Add count_tokens api #24 (thanks @joshleblanc)
Ruby Gemini AI 4.1.0
New version available on RubyGems:
gem 'gemini-ai', '~> 4.1'
New in this version:
- Add support for storing Google Cloud key as ENV var directly #19 (thanks @weilandia!)
- Refactoring Credentials #20
Ruby Gemini AI 4.0.0
New version available on RubyGems:
gem 'gemini-ai', '~> 4.0'
New in this version:
- Adding new methods and models support #17
- Detaching model from base URL;
- Adding the new
predict
andembed_content
methods; - Validating support for Gemini 1.5 Pro and Gemini 1.5 Flash;
- Adding documentation for Embeddings generation;
Breaking Change: client.request
now requires a longer portion of the path:
Before:
client.request(
'streamGenerateContent',
# ...
)
After:
client.request(
'publishers/google/models/gemini-pro:streamGenerateContent',
# ...
)
This breaking change should not be impactful (we infer that most users don't use client.request
directly) and will enable the Gem to evolve in the future to support more methods and requests that are not necessarily attached to a specific model.
Ruby Gemini AI 3.2.0
New version available on RubyGems:
gem 'gemini-ai', '~> 3.2'
New in this version:
- Fixing streaming by migrating to Typhoeus #12
- Fixes Streaming is not working #11
Thanks @alchaplinsky!
Ruby Gemini AI 3.1.3
New version available on RubyGems:
gem 'gemini-ai', '~> 3.1', '>= 3.1.3'
New in this version:
- Fixing error mixin issues.
- Upgrading Faraday.
Ruby Gemini AI 3.1.2
Ruby Gemini AI 3.1.1
New version available on RubyGems:
gem 'gemini-ai', '~> 3.1', '>= 3.1.1'
New in this version:
- Fixing an issue that caused errors in streaming when Google returns
blockReason
SAFETY
: - Increasing compatibility with other gems:
- Lower googleauth gem version requirement #10 (thanks @niciliketo)
- making server_sent_events: optional e8ca529
Ruby Gemini AI 3.1.0
New version available on RubyGems:
gem 'gemini-ai', '~> 3.1'
New in this version:
- Upgrading to Faraday 2.8.1
- add timeout option #7 - thanks @naoa!
- Adding support to configure timeout:
client = Gemini.new(
credentials: { service: 'vertex-ai-api', region: 'us-east4' },
options: {
model: 'gemini-pro',
connection: { request: { timeout: 5 } }
}
)