omniai-anthropic 1.6.1 → 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/anthropic/chat.rb +2 -0
- data/lib/omniai/anthropic/client.rb +2 -2
- data/lib/omniai/anthropic/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: e3ec18d95df3bf4941dd540413734412edd074ae66d67485f150acd5f4a2b9f9
|
4
|
+
data.tar.gz: c661aa160f00d882957a91b219e89b35c242e3055dc259a488c1d7955d9df448
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7af0dd8df929fe89b40d7be35153feb6f2e1f127e0fa103d76d22f934bda854be93ebd2eb00d29c1c7645ac61a8fdeb90c958b397b6f7fc35eb20ee291391cd7
|
7
|
+
data.tar.gz: 3f5fa55a06a3c72bd3395523bb6911b4e911cd825029de2f1f0d184c4b0a6f1440bf5583baa3685382a37b2f5abb24d8c12682bef1f63ca1dfe8a038b328d1e4
|
@@ -52,7 +52,7 @@ module OmniAI
|
|
52
52
|
|
53
53
|
# @raise [OmniAI::Error]
|
54
54
|
#
|
55
|
-
# @param messages [String
|
55
|
+
# @param messages [String] optional
|
56
56
|
# @param model [String] optional
|
57
57
|
# @param format [Symbol] optional :text or :json
|
58
58
|
# @param temperature [Float, nil] optional
|
@@ -63,7 +63,7 @@ module OmniAI
|
|
63
63
|
# @yieldparam prompt [OmniAI::Chat::Prompt]
|
64
64
|
#
|
65
65
|
# @return [OmniAI::Chat::Completion]
|
66
|
-
def chat(messages, model: Chat::
|
66
|
+
def chat(messages = nil, model: Chat::DEFAULT_MODEL, temperature: nil, format: nil, stream: nil, tools: nil, &)
|
67
67
|
Chat.process!(messages, model:, temperature:, format:, stream:, tools:, client: self, &)
|
68
68
|
end
|
69
69
|
end
|