Skip to content

Commit ffd73e6

Browse files
committed
send empty usage object in message start chunk
1 parent da1a1d0 commit ffd73e6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/providers/bedrock/messages.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,5 @@ function getMessageStartEvent(fallbackId: string, gatewayRequest: Params) {
623623
);
624624
messageStartEvent.message.id = fallbackId;
625625
messageStartEvent.message.model = gatewayRequest.model as string;
626-
// bedrock does not send usage in the beginning of the stream
627-
delete messageStartEvent.message.usage;
628626
return `event: message_start\ndata: ${JSON.stringify(messageStartEvent)}\n\n`;
629627
}

0 commit comments

Comments
 (0)