tiny_gemini 1.0.3 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tiny_gemini.rb +1 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5fec31bc59d83171347e905341b6e09a3a8dbfe9f564214810fac9b6bd36cdcb
4
- data.tar.gz: b26ca94d2f8122016cb73f194d016c72e5fb1163595908e163b259662e79b8b4
3
+ metadata.gz: d006c2de9b1679dd1baed5a50b79148e7766df750ff1bdf373b8d2ad9ec54be1
4
+ data.tar.gz: 4ea9f3c4c811b5859b98bd60889aa4acba572c8122614d9c7e775618ee49e70a
5
5
  SHA512:
6
- metadata.gz: '0922057a519f8927f76cf9027eaba67d1dca70294f1ebeda174bf9e7a3cadd2a3f8f43a074a47bdf24b8108764ee81627432bff0f010f20f829990f1adf7f67a'
7
- data.tar.gz: 7638fbe6bc05aa38c2ccb0cdbe5bded16bc471a5e21e65619d025d7d7675c35e3c0684dea436557952754197a1a758c19ae6aaa9926b63b81be7c9905d8eb82f
6
+ metadata.gz: d6dd5fb949ef4699e9cb28112e983f0b0856b9b0fac0d7c8b7f25e4a200f8323941cc65e675b69632a172a2055e55c7d2e7a1cdcdecdccbdb7c79d8fbe57f563
7
+ data.tar.gz: e4434b7a7d461b7c3de85655a4e9e8f471b2771ee8ebd8dccbf95c2bb0b2807d2ae96017c842f75dba0fe496b672b561cd7cd03d6585ea60e89619878bce0356
data/lib/tiny_gemini.rb CHANGED
@@ -56,7 +56,7 @@ class TinyGemini
56
56
  # NOTE: if you want the model to impersonate a character (i.e. a talking cat)
57
57
  # you need to have set the `system_instruction` parameter when initializing
58
58
  # this class to make that work
59
- def chat(messages)
59
+ def prompt(messages)
60
60
  body = { contents: messages }
61
61
  body.merge!(system_instruction: { parts: { text: @system_instruction } }) if @system_instruction
62
62
 
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: 1.0.3
4
+ version: 2.0.0
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-09 00:00:00.000000000 Z
11
+ date: 2024-07-10 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