Skip to content

Commit 9f9f464

Browse files
committed
Revert "Include stringified error for more detail"
This reverts commit a23a698.
1 parent 8a1ba97 commit 9f9f464

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

backend/src/llm-apis/vercel-ai-sdk/ai-sdk.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ export async function* promptAiSdkStream(
118118
chunk: { ...chunk, error: undefined },
119119
error: getErrorObject(chunk.error),
120120
model: params.model,
121-
errorStr: JSON.stringify(chunk.error),
122121
},
123122
'Error from AI SDK',
124123
)

packages/agent-runtime/src/run-agent-step.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,6 @@ export async function loopAgentSteps(
870870
logger.error(
871871
{
872872
error: getErrorObject(error),
873-
errorStr: JSON.stringify(error),
874873
agentType,
875874
agentId: currentAgentState.agentId,
876875
runId,
@@ -882,10 +881,7 @@ export async function loopAgentSteps(
882881
)
883882

884883
// Re-throw NetworkError and PaymentRequiredError to allow SDK retry wrapper to handle it
885-
if (
886-
error instanceof Error &&
887-
(error.name === 'NetworkError' || error.name === 'PaymentRequiredError')
888-
) {
884+
if (error instanceof Error && (error.name === 'NetworkError' || error.name === 'PaymentRequiredError')) {
889885
throw error
890886
}
891887

sdk/src/impl/llm.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,6 @@ export async function* promptAiSdkStream(
240240
chunk: { ...chunk, error: undefined },
241241
error: getErrorObject(chunk.error),
242242
model: params.model,
243-
errorStr: JSON.stringify(chunk.error),
244243
},
245244
'Error from AI SDK',
246245
)

0 commit comments

Comments
 (0)