FIX: Follow fix for missing claude tags in a7adce0 (#242)

This commit is contained in:
Rafael dos Santos Silva 2023-10-03 19:56:29 -03:00 committed by GitHub
parent a7adce0cf7
commit 4df258ce7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ module DiscourseAi
) )
end end
Nokogiri::HTML5.fragment(response).at("ai").text.presence || response Nokogiri::HTML5.fragment(response).at("ai")&.text.presence || response
end end
def tokenizer def tokenizer