fix: retry on network errors during LLM streaming (#519)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Charles Packer
2026-01-11 19:40:21 -08:00
committed by GitHub
parent 79c92e92cc
commit 77c51eb23d
2 changed files with 2 additions and 0 deletions

View File

@@ -247,6 +247,7 @@ async function isRetriableError(
"Google Vertex API error", // google_vertex_client.py:848
"overloaded", // anthropic_client.py:753 - used for LLMProviderOverloaded
"api_error", // Anthropic SDK error type field
"Network error", // Transient network failures during streaming
];
if (
errorType === "internal_error" &&

View File

@@ -1268,6 +1268,7 @@ export async function handleHeadlessCommand(
"Google Vertex API error", // google_vertex_client.py:848
"overloaded", // anthropic_client.py:753 - used for LLMProviderOverloaded
"api_error", // Anthropic SDK error type field
"Network error", // Transient network failures during streaming
];
const isLlmErrorFromDetail =
errorType === "internal_error" &&