Skip to content

Commit 0b1c0af

Browse files
committed
Hide Rubocop offenses
1 parent 32c884f commit 0b1c0af

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/ruby/openai/client.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ def search(engine:, documents:, query:, version: default_version)
3131
)
3232
end
3333

34-
# DEPRECATED.
34+
# rubocop:disable Metrics/MethodLength
35+
# rubocop:disable Layout/LineLength
3536
def call(engine:, prompt:, max_tokens:, version: default_version)
3637
warn "[DEPRECATION] `Client#call` is deprecated and will be removed in a future version of ruby-openai.
3738
Please use `Client#completions` instead, like this:
@@ -48,6 +49,8 @@ def call(engine:, prompt:, max_tokens:, version: default_version)
4849
}.to_json
4950
)
5051
end
52+
# rubocop:enable Metrics/MethodLength
53+
# rubocop:enable Layout/LineLength
5154

5255
private
5356

0 commit comments

Comments
 (0)