fix: retain LLM HTTP status metadata

This commit is contained in:
Tianyi Cui
2026-07-14 23:43:53 +08:00
parent 0bc114c07d
commit d0df50aa8e
7 changed files with 21 additions and 15 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ export class DeepSeekAdapter extends LlmAdapter {
// Only swallow error-body parsing: status and code are already captured,
// so malformed gateway JSON must not mask the actionable HTTP failure.
}
throw new LlmError(message, code)
throw new LlmError(message, code, response.status)
}
if (!response.body) {
throw new LlmError('DeepSeek API returned no response body', 'EMPTY_RESPONSE')