Skip to content

Commit 7c88852

Browse files
doerfliCopilot
andauthored
Update app/services/mistralai_service.rb
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 73f581b commit 7c88852

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/services/mistralai_service.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def ocr_to_markdown(image_file, content_type)
3333
else 'jpeg' # default
3434
end
3535

36-
# puts "Image format detected: #{image_format} for content type: #{content_type} content #{image_data[0..30]}..."
36+
Rails.logger.debug "Image format detected: #{image_format} for content type: #{content_type}"
3737
filedata = "data:image/#{image_format};base64,#{image_data}"
3838

3939
response = @client.ocr(filedata, kind: :image)

0 commit comments

Comments
 (0)