Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

音频太大会超出限制(200M+) #30

Open
hyzaw opened this issue May 25, 2024 · 1 comment
Open

音频太大会超出限制(200M+) #30

hyzaw opened this issue May 25, 2024 · 1 comment

Comments

@hyzaw
Copy link

hyzaw commented May 25, 2024

APIStatusError: <title>413 Request Entity Too Large</title>

413 Request Entity Too Large


cloudflare
Traceback:
File "E:\AAVT_0.8_full\env\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 600, in _run_script
exec(code, module.dict)
File "E:\AAVT_0.8_full\Chenyme-AAVT.py", line 40, in
video()
File "E:\AAVT_0.8_full\project\video.py", line 168, in video
result = openai_whisper(st.session_state.openai_key, st.session_state.openai_base, proxy_on, whisper_prompt, temperature, output_file)
File "E:\AAVT_0.8_full\utils\utils.py", line 65, in openai_whisper
transcript = client.audio.transcriptions.create(
File "E:\AAVT_0.8_full\env\lib\site-packages\openai\resources\audio\transcriptions.py", line 116, in create
return self._post(
File "E:\AAVT_0.8_full\env\lib\site-packages\openai_base_client.py", line 1240, in post
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
File "E:\AAVT_0.8_full\env\lib\site-packages\openai_base_client.py", line 921, in request
return self._request(
File "E:\AAVT_0.8_full\env\lib\site-packages\openai_base_client.py", line 976, in _request
return self._retry_request(
File "E:\AAVT_0.8_full\env\lib\site-packages\openai_base_client.py", line 1053, in _retry_request
return self._request(
File "E:\AAVT_0.8_full\env\lib\site-packages\openai_base_client.py", line 976, in _request
return self._retry_request(
File "E:\AAVT_0.8_full\env\lib\site-packages\openai_base_client.py", line 1053, in _retry_request
return self._request(
File "E:\AAVT_0.8_full\env\lib\site-packages\openai_base_client.py", line 1020, in _request
raise self._make_status_error_from_response(err.response) from None

@Chenyme
Copy link
Owner

Chenyme commented May 25, 2024

你好!
音频太大建议使用本地调用模式,压缩文件体积或者切割文件多次上传。
openai官方文件大小限制为 25 MB。
后面我会尝试让自动实现大文件切割多次上传,感谢你的反馈~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants