File tree Expand file tree Collapse file tree 3 files changed +1
-7
lines changed
backend/src/llm-apis/vercel-ai-sdk
packages/agent-runtime/src Expand file tree Collapse file tree 3 files changed +1
-7
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments