When attempting to translate a phrase into multiple languages using the GPT-4 API, the request fails with a 500 error code if Korean is included in the list of target languages. If Korean is removed from the list, the request is processed successfully. The failure consistently occurs after approximately 24 seconds of processing time.
Steps to Reproduce:
- Send a POST request to the GPT-4 API with the following request body:
{
"model": "gpt-4",
"messages": [
{
"role": "user",
"content": "Translate in given languages: Arabic, ChineseSimplified, ChineseTraditional, Dutch, French, German, Italian, Japanese, Korean, Polish, Portuguese, Russian, Spanish, Thai, Turkish, Vietnamese: Our national park is home to majestic elk. It's truly a sight to behold them roaming freely in their natural habitat. in given format: language|translatedText (translate only the phrase Our national park is home to majestic elk. It's truly a sight to behold them roaming freely in their natural habitat.)"
}
],
"temperature": 0.1,
"max_tokens": 2048
}
- Observe that the request fails with the following response
{
"error": {
"message": "The server had an error while processing your request. Sorry about that!",
"type": "server_error",
"param": null,
"code": null
}
}
- Modify the request by removing “Korean” from the list of languages and resend the request.
- Observe that the request now succeeds without errors.