mirror of
https://github.com/discourse/discourse.git
synced 2025-04-26 05:34:32 +08:00
UX: Use display_name for summary algorithm to display a custom LLM's name (#27006)
This commit is contained in:
parent
3780a5e827
commit
2cfcb4042e
@ -103,7 +103,7 @@ class TopicSummarization
|
||||
main_summary =
|
||||
SummarySection.create!(
|
||||
target: topic,
|
||||
algorithm: strategy.model,
|
||||
algorithm: strategy.display_name,
|
||||
content_range: (post_numbers.first..post_numbers.last),
|
||||
summarized_text: result[:summary],
|
||||
original_content_sha: build_sha(post_numbers),
|
||||
@ -112,7 +112,7 @@ class TopicSummarization
|
||||
result[:chunks].each do |chunk|
|
||||
SummarySection.create!(
|
||||
target: topic,
|
||||
algorithm: strategy.model,
|
||||
algorithm: strategy.display_name,
|
||||
content_range: chunk[:ids].min..chunk[:ids].max,
|
||||
summarized_text: chunk[:summary],
|
||||
original_content_sha: build_sha(chunk[:ids]),
|
||||
|
Loading…
x
Reference in New Issue
Block a user