-
feat(translator): improve error handling and response conversion for incomplete statuses
发布于
2026-07-15 20:38:19 +00:00 | 283 次提交 在此版本后已推送到 main- Enhanced response handling to support
response.incompleteevents across translator components and executors. - Refactored
resultErrorFromErrorto centralize error conversion and consolidate repeated logic for constructing custom errors. - Updated handling of
max_output_tokensand similar terminal reasons in OpenAI and Gemini translator workflows. - Introduced
IsRequestScopedandIsRequestScopedErrorto differentiate between request-scoped and non-request-scoped errors. - Added comprehensive test cases for incomplete responses, terminal failures, and error propagation in both streaming and non-streaming conditions.
Closes: #3055
下载附件
- Enhanced response handling to support