omniai-anthropic 1.6.0 → 1.6.1
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/client.rb +5 -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: e9b758783278cd58cfeac0e8a80765d796e63efb811671eaa44b4e4653496c45
|
4
|
+
data.tar.gz: 1cdcff27b130211ff661bf14d219716373eb7bc03d568a50d1c5a453215977f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ff6a720b6a032067d2e1c217f1cda76e552fe06e3c61e82b3eec36f307e9ab55da840b850718c38f7ed074c719597bbcd22d2c36bcdf56822782253661f74b2
|
7
|
+
data.tar.gz: 76cd69ef19bc717166576ea4ba7cb11579508a182da624fa18764804ee46466958c651e7be79874ac1b51ae2791839e74cc08613e1fb07ce3e4cae594958c820
|
@@ -59,9 +59,12 @@ module OmniAI
|
|
59
59
|
# @param stream [Proc, nil] optional
|
60
60
|
# @param tools [Array<OmniAI::Tool>, nil] optional
|
61
61
|
#
|
62
|
+
# @yield [prompt]
|
63
|
+
# @yieldparam prompt [OmniAI::Chat::Prompt]
|
64
|
+
#
|
62
65
|
# @return [OmniAI::Chat::Completion]
|
63
|
-
def chat(messages, model: Chat::Model::CLAUDE_HAIKU, temperature: nil, format: nil, stream: nil, tools: nil)
|
64
|
-
Chat.process!(messages, model:, temperature:, format:, stream:, tools:, client: self)
|
66
|
+
def chat(messages, model: Chat::Model::CLAUDE_HAIKU, temperature: nil, format: nil, stream: nil, tools: nil, &)
|
67
|
+
Chat.process!(messages, model:, temperature:, format:, stream:, tools:, client: self, &)
|
65
68
|
end
|
66
69
|
end
|
67
70
|
end
|