FIX: Fallback to whole response when Claude forgets tags (#240)
This commit is contained in:
@@ -114,7 +114,7 @@ module DiscourseAi
|
||||
)
|
||||
end
|
||||
|
||||
Nokogiri::HTML5.fragment(response).at("ai").text
|
||||
Nokogiri::HTML5.fragment(response).at("ai").text.presence || response
|
||||
end
|
||||
|
||||
def tokenizer
|
||||
|
||||
Reference in New Issue
Block a user