File tree 2 files changed +2
-0
lines changed
2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -485,6 +485,7 @@ export const AnthropicChatCompleteStreamChunkTransform: (
485
485
chunk = chunk . replace ( / ^ e v e n t : c o n t e n t _ b l o c k _ s t a r t [ \r \n ] * / , '' ) ;
486
486
chunk = chunk . replace ( / ^ e v e n t : m e s s a g e _ d e l t a [ \r \n ] * / , '' ) ;
487
487
chunk = chunk . replace ( / ^ e v e n t : m e s s a g e _ s t a r t [ \r \n ] * / , '' ) ;
488
+ chunk = chunk . replace ( / ^ e v e n t : e r r o r [ \r \n ] * / , '' ) ;
488
489
chunk = chunk . replace ( / ^ d a t a : / , '' ) ;
489
490
chunk = chunk . trim ( ) ;
490
491
Original file line number Diff line number Diff line change @@ -988,6 +988,7 @@ export const VertexAnthropicChatCompleteStreamChunkTransform: (
988
988
chunk = chunk . replace ( / ^ e v e n t : c o n t e n t _ b l o c k _ s t a r t [ \r \n ] * / , '' ) ;
989
989
chunk = chunk . replace ( / ^ e v e n t : m e s s a g e _ d e l t a [ \r \n ] * / , '' ) ;
990
990
chunk = chunk . replace ( / ^ e v e n t : m e s s a g e _ s t a r t [ \r \n ] * / , '' ) ;
991
+ chunk = chunk . replace ( / ^ e v e n t : e r r o r [ \r \n ] * / , '' ) ;
991
992
chunk = chunk . replace ( / ^ d a t a : / , '' ) ;
992
993
chunk = chunk . trim ( ) ;
993
994
You can’t perform that action at this time.
0 commit comments