Just curious if anyone else is having this issue. Been happening since yesterday afternoon on code that I wrote for my mother’s practice, which has been working for ~4 months without this issue. Key details:
Requests hang for a couple minutes then return the following error:
openai.InternalServerError: Error code: 524 - {‘error’: {‘code’: 524, ‘message’: ‘Gateway timeout.’, ‘param’: None, ‘type’: ‘cf_gateway_timeout’}}
Code:
from openai import OpenAI
import sys
OAI_client = OpenAI()
audio_file = open(sys.argv[1], "rb")
transcript = OAI_client.audio.transcriptions.create(
model="whisper-1",
file=audio_file,
response_format="text"
)
print(transcript)
This is what im running in my git bash terminal
py test.py "audio_files/bigsample.mp3"
Seems like they may have inadvertently lowered the file size limit or something. Please let me know if you’ve experienced anything similar. Thanks.