omniai-openai 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/openai/client.rb +2 -2
- data/lib/omniai/openai/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: 99efbb2cd49fcc32c8c4934ad0081b18b0e6eba09056b5418e9040d1c62a649a
|
4
|
+
data.tar.gz: 44bebce8f96c0203a3a9a64d5f1661e5c247dbb1030eff85c75cdc641fc72534
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22ca0c4580a73126a7e5fee444b52da77d4dbbac6442d04d9ff848bc0f1b5eb00acc249f9db6671fdf0474ec273adf0cc57f5edc8ca0e90792686b40e574a692
|
7
|
+
data.tar.gz: 49ab6aec6a2d795c052a9cd3a546061028367e5d18a0e60281525c02d6e9a62e6fad12733d914c4bf2326c154738a7cb8857611dbf945986f0db49924649fceb
|
data/lib/omniai/openai/client.rb
CHANGED
@@ -62,7 +62,7 @@ module OmniAI
|
|
62
62
|
|
63
63
|
# @raise [OmniAI::Error]
|
64
64
|
#
|
65
|
-
# @param messages [String
|
65
|
+
# @param messages [String] optional
|
66
66
|
# @param model [String] optional
|
67
67
|
# @param format [Symbol] optional :text or :json
|
68
68
|
# @param temperature [Float, nil] optional
|
@@ -73,7 +73,7 @@ module OmniAI
|
|
73
73
|
# @yieldparam prompt [OmniAI::Chat::Prompt]
|
74
74
|
#
|
75
75
|
# @return [OmniAI::Chat::Completion]
|
76
|
-
def chat(messages, model: Chat::DEFAULT_MODEL, temperature: nil, format: nil, stream: nil, tools: nil, &)
|
76
|
+
def chat(messages = nil, model: Chat::DEFAULT_MODEL, temperature: nil, format: nil, stream: nil, tools: nil, &)
|
77
77
|
Chat.process!(messages, model:, temperature:, format:, stream:, tools:, client: self, &)
|
78
78
|
end
|
79
79
|
|