tiny_gemini 1.0.2 → 1.0.3
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 +0 -8
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fec31bc59d83171347e905341b6e09a3a8dbfe9f564214810fac9b6bd36cdcb
|
4
|
+
data.tar.gz: b26ca94d2f8122016cb73f194d016c72e5fb1163595908e163b259662e79b8b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0922057a519f8927f76cf9027eaba67d1dca70294f1ebeda174bf9e7a3cadd2a3f8f43a074a47bdf24b8108764ee81627432bff0f010f20f829990f1adf7f67a'
|
7
|
+
data.tar.gz: 7638fbe6bc05aa38c2ccb0cdbe5bded16bc471a5e21e65619d025d7d7675c35e3c0684dea436557952754197a1a758c19ae6aaa9926b63b81be7c9905d8eb82f
|
data/lib/tiny_gemini.rb
CHANGED
@@ -59,14 +59,6 @@ class TinyGemini
|
|
59
59
|
def chat(messages)
|
60
60
|
body = { contents: messages }
|
61
61
|
body.merge!(system_instruction: { parts: { text: @system_instruction } }) if @system_instruction
|
62
|
-
body.merge!({
|
63
|
-
safetySettings: [
|
64
|
-
{
|
65
|
-
category: "HARM_CATEGORY_SEXUALLY_EXPLICIT",
|
66
|
-
threshold: "BLOCK_NONE"
|
67
|
-
}
|
68
|
-
]
|
69
|
-
})
|
70
62
|
|
71
63
|
request_body = body.to_json
|
72
64
|
|