File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -768,13 +768,6 @@ export const AnthropicChatCompleteStreamChunkTransform: (
768
768
} ;
769
769
delete contentBlockObject . delta . type ;
770
770
771
- const finishReason = parsedChunk . delta ?. stop_reason
772
- ? transformFinishReason (
773
- parsedChunk . delta ?. stop_reason ,
774
- strictOpenAiCompliance
775
- )
776
- : null ;
777
-
778
771
return (
779
772
`data: ${ JSON . stringify ( {
780
773
id : fallbackId ,
@@ -794,7 +787,7 @@ export const AnthropicChatCompleteStreamChunkTransform: (
794
787
} ,
795
788
index : 0 ,
796
789
logprobs : null ,
797
- finish_reason : finishReason ,
790
+ finish_reason : null ,
798
791
} ,
799
792
] ,
800
793
} ) } ` + '\n\n'
Original file line number Diff line number Diff line change @@ -748,6 +748,7 @@ export const BedrockChatCompleteStreamChunkTransform: (
748
748
content_blocks : [ contentBlockObject ] ,
749
749
} ) ,
750
750
tool_calls : toolCalls . length > 0 ? toolCalls : undefined ,
751
+ finish_reason : null ,
751
752
} ,
752
753
} ,
753
754
] ,
You can’t perform that action at this time.
0 commit comments