omniai-google 1.6.0 → 1.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omniai/google/chat.rb +2 -0
- data/lib/omniai/google/client.rb +6 -3
- data/lib/omniai/google/version.rb +1 -1
- 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: dbef0413582b7fa949e9458e1cde8d18d2a41aeb65120c5eeebf5335c90c708b
|
4
|
+
data.tar.gz: e5b25bb1c028defefb39ae7c97973df08d63a9391168025a379604e8321cb418
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3ddf7b5f4a8c4ea865978ebf60eca20848b15bea2660c2bf136634ef9578ae6887f7c6a4b2a471ab526403e5d3ba94f16298f980360edd40671008bbd555ea2
|
7
|
+
data.tar.gz: 7d49c733cb51aa17ed3dd7ccca7702aaeacd818623c2a227e4363ce675ed6aa42ae6cde3a1754011273d9ab31db41b72e1c2c98555740a00bc75cb29bfb9652b
|
data/lib/omniai/google/chat.rb
CHANGED
data/lib/omniai/google/client.rb
CHANGED
@@ -45,16 +45,19 @@ module OmniAI
|
|
45
45
|
|
46
46
|
# @raise [OmniAI::Error]
|
47
47
|
#
|
48
|
-
# @param messages [String
|
48
|
+
# @param messages [String] optional
|
49
49
|
# @param model [String] optional
|
50
50
|
# @param format [Symbol] optional :text or :json
|
51
51
|
# @param temperature [Float, nil] optional
|
52
52
|
# @param stream [Proc, nil] optional
|
53
53
|
# @param tools [Array<OmniAI::Chat::Tool>, nil] optional
|
54
54
|
#
|
55
|
+
# @yield [prompt] optional
|
56
|
+
# @yieldparam prompt [OmniAI::Chat::Prompt]
|
57
|
+
#
|
55
58
|
# @return [OmniAI::Chat::Completion]
|
56
|
-
def chat(messages, model: Chat::
|
57
|
-
Chat.process!(messages, model:, temperature:, format:, stream:, tools:, client: self)
|
59
|
+
def chat(messages = nil, model: Chat::DEFAULT_MODEL, temperature: nil, format: nil, stream: nil, tools: nil, &)
|
60
|
+
Chat.process!(messages, model:, temperature:, format:, stream:, tools:, client: self, &)
|
58
61
|
end
|
59
62
|
end
|
60
63
|
end
|