omniai-openai 1.6.1 → 1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/omniai/openai/chat.rb +1 -0
- 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: dceac1ba096564c04a795101feeebde7e5014b901d6cb1dd479cc7701d38bd3c
|
4
|
+
data.tar.gz: a1ef0a834eec86b0a5072811580259700b704abadedd29965b649b127f2aba50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51e5373e55921c3768a1d245fd9e9b14b2c0e7a842088504ce51e9b23627df9df640b4fcbc633f34f89a53bc0079d4516fed4074c0ab445be1fb67d8ff008a49
|
7
|
+
data.tar.gz: aebd0db9486e9df3ae9370e6c089bdd211f745bcb6146e457c80417325fc4004492050dcefa667284963379915030ac20c84dfeb8e831ce135542d2aa2a7eaec
|
data/lib/omniai/openai/chat.rb
CHANGED
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
|
|