Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit f9aa2de

Browse files
authored
FIX: AWS Bedrock non-streaming calls response log (#1072)
1 parent 81b952d commit f9aa2de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/completions/endpoints/aws_bedrock.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def bedrock_decode(chunk)
196196
def final_log_update(log)
197197
log.request_tokens = processor.input_tokens if processor.input_tokens
198198
log.response_tokens = processor.output_tokens if processor.output_tokens
199-
log.raw_response_payload = @raw_response
199+
log.raw_response_payload = @raw_response if @raw_response
200200
end
201201

202202
def processor

0 commit comments

Comments
 (0)