- Symptom: Submitted 50,000 embedding requests using the Batch API, resulting in an output file of approximately 1GB. The download fails with the following error:
peer closed connection without sending complete message body (received X bytes, expected Y bytes). - Conditions to Reproduce: The number of batch lines approaches the 50,000 limit, and the output file size exceeds ~200-300MB.
- Documentation Gap: The official documentation does not mention any impact of output file size on download stability.
- Workaround: Limit each batch to under 10,000 lines (keeping the output around ~200MB) to ensure stable downloads.
- Environment:
openai-pythonSDK, macOS. The issue is reproducible using bothwith_streaming_response.content()and the standardrequestslibrary.
Not sure if only me met this issue…which i didnt see in the developer docs.
thank you in advanced.