openai.Audio.transcribe's api_key
does not work; openai.error.AuthenticationError is raised
#303
Labels
bug
Something isn't working
Describe the bug
When passing the API Key to the
api_key
parameter of theopenai.Audio.transcribe()
method, anopenai.error.AuthenticationError
is thrown.Upon inspecting the trace back, it seems that the cause is that the
api_key
is not passed to the_prepare_request
method.openai-python/openai/api_resources/audio.py
Line 55 in 6c23b7f
When making the following modification, the AuthenticationError is not thrown and the transcription result is obtained.
To Reproduce
pip install openai
say 親譲りの無鉄砲で子供の時から損ばかりしている -o sample.wav --data-format=LEF32@16000
)Code snippets
OS
macOS
Python version
Python 3.10.9
Library version
openai-python 0.27.2
The text was updated successfully, but these errors were encountered: