tiny_gemini 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tiny_gemini.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17dd90763c0cc839601bca31e76a8548119e17db326e345d24d56de778e31fad
|
4
|
+
data.tar.gz: 2bd31ca1a5f3495650a585c6ab66d44efe6fb87d4007b7dea540cc942d8cbccd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e0f2d39c409822fbfbdcbf0ac7d2a492bd778b6f6d1eb443ab06a41fdfc7c72aa089b5f790735c113b68a52537339f60e339af0cbaf179f7595739b29effa0a
|
7
|
+
data.tar.gz: 07a9e15f7582d98018b9e9d2507b1b3099bcc6c0bb1c5f5b37302ca4aace44ba30ba9b24d05814d1f3aec1b0ed1d4897540cbd9e14c49ab1a3df50753262c6a4
|
data/lib/tiny_gemini.rb
CHANGED
@@ -78,7 +78,7 @@ class TinyGemini
|
|
78
78
|
first_candidate_response = parsed_response['candidates'].first
|
79
79
|
raise(TinyGeminiModelError, "No first candidate response in Gemini response") unless first_candidate_response
|
80
80
|
|
81
|
-
text_response = first_candidate_response&.dig('content', 'parts')&.first
|
81
|
+
text_response = first_candidate_response&.dig('content', 'parts')&.first&.dig('text')
|
82
82
|
raise(TinyGeminiModelError, "Text response is nil or empty: `#{text_response.inspect}`") unless text_response.present?
|
83
83
|
|
84
84
|
text_response
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tiny_gemini
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Lunt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: a tiny gem for using Google Gemini's generative models for chat
|
14
14
|
email: jefflunt@gmail.com
|