FIX: AWS Bedrock non-streaming calls response log (#1072)

This commit is contained in:
Rafael dos Santos Silva 2025-01-15 18:51:25 -03:00 committed by GitHub
parent 81b952d56e
commit f9aa2de413
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ module DiscourseAi
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