mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-06-28 10:32:15 +00:00
FIX: Fallback to whole response when Claude forgets tags (#240)
This commit is contained in:
parent
0cbf14e343
commit
a7adce0cf7
@ -114,7 +114,7 @@ module DiscourseAi
|
|||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
Nokogiri::HTML5.fragment(response).at("ai").text
|
Nokogiri::HTML5.fragment(response).at("ai").text.presence || response
|
||||||
end
|
end
|
||||||
|
|
||||||
def tokenizer
|
def tokenizer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user