Skip to content

Commit

Permalink
FIX: AWS Bedrock non-streaming calls response log
Browse files Browse the repository at this point in the history
  • Loading branch information
xfalcox committed Jan 15, 2025
1 parent 81b952d commit 92979b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/completions/endpoints/aws_bedrock.rb
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def bedrock_decode(chunk)
def final_log_update(log)
log.request_tokens = processor.input_tokens if processor.input_tokens
log.response_tokens = processor.output_tokens if processor.output_tokens
log.raw_response_payload = @raw_response
log.raw_response_payload = @raw_response if @raw_response
end

def processor
Expand Down

0 comments on commit 92979b1

Please sign in to comment.