#2534 openai.NotFoundError: 404 page not found

191.6* Posted at: 1 day ago 👁13

Requested resource not found, check model name or API address 404 page not found:
Traceback (most recent call last):
File "videotrans\util\TestSTT.py", line 18, in run
File "videotrans\recognition\__init__.py", line 218, in run
File "videotrans\recognition\_base.py", line 80, in run
File "videotrans\recognition\_openairecognapi.py", line 44, in _exec
File "videotrans\recognition\_openairecognapi.py", line 98, in _thrid_api
File "openai\_utils\_utils.py", line 286, in wrapper
File "openai\resources\audio\transcriptions.py", line 406, in create
File "openai\_base_client.py", line 1259, in post
File "openai\_base_client.py", line 1047, in request
openai.NotFoundError: 404 page not found


=
system:Windows-10-10.0.22631-SP0
version:v3.92
frozen:True
language:en
root_dir:D:/win-pyvideotrans-v3.92

1 Replies

The error "404 page not found" when testing the OpenAI Whisper API indicates that the software cannot connect to the OpenAI API endpoint. This is most likely due to one of the following reasons:

  1. Incorrect API Key: The OpenAI API key entered in the settings is invalid or has expired.
  2. Incorrect API Base URL: The custom API base URL (if you are using a proxy service) is wrong.
  3. Network/Proxy Issue: Your network cannot access the OpenAI service, or the proxy settings are incorrect.

Please follow these steps to resolve the issue:

  1. Verify OpenAI API Key:

    • Go to the main interface, click on Settings (the gear icon).
    • In the Translation Settings section, find the field for OpenAI API Key.
    • Ensure the key is correct and active. You can test it on the OpenAI platform.
    • If you are using a third-party service that provides OpenAI-compatible APIs (like Azure OpenAI, SillyTavern, etc.), you must also provide the correct API Base URL in the designated field.
  2. Check Network Proxy (if applicable):

    • If you are in a region that requires a proxy to access OpenAI, you must configure it.
    • In the main interface, on the 5th line (Synchronization & Subtitles), find the Network Proxy field.
    • Enter your proxy address in the correct format, e.g., http://127.0.0.1:10809 or socks5://127.0.0.1:10808.
  3. Test Connection:

    • After updating the API Key and Proxy, go back to the Settings window.
    • Find the OpenAI Whisper API section in the Speech Recognition (ASR) tab.
    • Click the Test Connection button to verify if the issue is resolved.
  4. Alternative Solution - Use Local Model:

    • If you cannot resolve the API connection issue, switch to a local speech recognition model.
    • On the main interface, 2nd line (Speech Recognition), select faster-whisper(local) from the dropdown.
    • Choose a model like medium or small if you have limited GPU memory. Remember to check CUDA Acceleration if you have an NVIDIA GPU.

If the problem persists after these steps, please provide the complete log file from the D:/win-pyvideotrans-v3.92/logs/ directory for further analysis.

Please refer to the documentation:

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Donate: https://ko-fi.com/jianchang512

Trending Questions