Skip to content

Commit 6d906ea

Browse files
authored
Merge pull request #201 from alexrudall/3.5.0
Bump to 3.5.0
2 parents ca43f4c + fdf1b86 commit 6d906ea

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
Use the [OpenAI API](https://openai.com/blog/openai-api/) with Ruby! 🤖❤️
99

10-
Generate text with ChatGPT, create images with DALL·E, or write code with Codex...
10+
Generate text with ChatGPT, transcribe or translate audio with Whisper, create images with DALL·E, or write code with Codex...
1111

1212
## Installation
1313

@@ -269,7 +269,7 @@ Pass a string to check if it violates OpenAI's Content Policy:
269269

270270
### Whisper
271271

272-
Whisper is a speech to text model that can be used to generate text based on an audio file [messages](https://platform.openai.com/docs/guides/chat/introduction):
272+
Whisper is a speech to text model that can be used to generate text based on an audio files:
273273

274274
#### Translate
275275

spec/openai/client/audio_spec.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
OpenAI::Client.new.transcribe(
99
parameters: {
1010
model: model,
11-
file: File.open(audio, 'r:iso-8859-1')
11+
file: File.open(audio, "r:iso-8859-1")
1212
}
1313
)
1414
end
@@ -19,7 +19,6 @@
1919
let(:model) { "whisper-1" }
2020

2121
it "succeeds" do
22-
2322
VCR.use_cassette(cassette) do
2423
expect(content.empty?).to eq(false)
2524
end
@@ -37,7 +36,7 @@
3736
OpenAI::Client.new.translate(
3837
parameters: {
3938
model: model,
40-
file: File.open(audio, 'r:iso-8859-1')
39+
file: File.open(audio, "r:iso-8859-1")
4140
}
4241
)
4342
end
@@ -48,7 +47,6 @@
4847
let(:model) { "whisper-1" }
4948

5049
it "succeeds" do
51-
5250
VCR.use_cassette(cassette) do
5351
expect(content.empty?).to eq(false)
5452
end

0 commit comments

Comments
 (0)