mirror of
https://github.com/OwO-Network/DeepLX.git
synced 2026-12-01 14:57:52 +00:00
`text` now accepts either a single string or an array of strings. A string is answered with a string in `data` exactly as before; an array is answered with a position-aligned array, and the whole batch travels in a single oneshot request, so a caller with many segments needs one round trip instead of one per segment. A batch is all-or-nothing: an empty array or an empty element answers with the existing 404 "No text to translate", and if upstream returns a different number of translations or leaves one empty the request fails with 503 "Translation failed" instead of returning placeholders or a misaligned array. The anonymous length cap applies to the total length of the array, which the README now documents. Refs #240