Skip to content

Commit 0dc2f35

Browse files
committed
Fix rubocop offenses
1 parent 3e9df5b commit 0dc2f35

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

lib/openai/vector_store_file_batches.rb

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,21 @@ def initialize(client:)
55
end
66

77
def list(vector_store_id:, id:, parameters: {})
8-
@client.get(path: "/vector_stores/#{vector_store_id}/file_batches/#{id}/files", parameters: parameters)
8+
@client.get(
9+
path: "/vector_stores/#{vector_store_id}/file_batches/#{id}/files",
10+
parameters: parameters
11+
)
912
end
1013

1114
def retrieve(vector_store_id:, id:)
1215
@client.get(path: "/vector_stores/#{vector_store_id}/file_batches/#{id}")
1316
end
1417

1518
def create(vector_store_id:, parameters: {})
16-
@client.json_post(path: "/vector_stores/#{vector_store_id}/file_batches", parameters: parameters)
19+
@client.json_post(
20+
path: "/vector_stores/#{vector_store_id}/file_batches",
21+
parameters: parameters
22+
)
1723
end
1824

1925
def cancel(vector_store_id:, id:)

spec/openai/client/vector_store_file_batches_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
OpenAI::Client.new.vector_stores.create(parameters: {})["id"]
66
end
77
end
8-
8+
99
let(:filename) { "text.txt" }
1010
let(:file) { File.join(RSPEC_ROOT, "fixtures/files", filename) }
1111
let(:upload_purpose) { "assistants" }

0 commit comments

Comments
 (0)