The "status_code=400, bad request" error during translation indicates that the request sent to the translation service (API) was malformed or incorrect. This is almost always due to an issue with the API Key or the target language setting.
Please follow these steps to resolve the issue:
Check and Re-enter Your API Key:
- Go to the main interface, click on the dropdown menu for the translation service you are using (e.g., Google, OpenAI, DeepSeek).
- Click on the gear/settings icon next to it.
- Carefully re-enter your API Key, ensuring there are no extra spaces at the beginning or end. If possible, use the "Copy" and "Paste" function.
- Save the settings.
Verify Target Language Settings:
- On the main interface, in the "Translate" section, double-check the "Target Language" you have selected.
- Ensure it is a valid language code supported by the API you are using. For example, if translating to Brazilian Portuguese, you might need to select
Portuguese or a specific variant like pt or pt-BR.
Check Your Network Proxy (if applicable):
- If you are in a region that requires a proxy to access services like Google or OpenAI, ensure the proxy address in the "Network Proxy" field (bottom of the main window) is correct and active (e.g.,
http://127.0.0.1:7860).
Try a Different Translation Service:
- Temporarily switch to a different, simpler translation service like "Google" (requires proxy) or "Microsoft" (free) to test if the problem is specific to one API.
If the problem persists after these steps, please provide the following information for more precise help:
- Which specific translation service are you using (e.g., DeepSeek, OpenAI, Google)?
- What is the source language and target language set in the software?